Compare commits

..

2 Commits

2 changed files with 4 additions and 2 deletions

View File

@ -214,7 +214,9 @@ int main()
main_loop_cnt++; main_loop_cnt++;
strcpy(&disp[0][0], "Line 1");
rot = rotary_encoder_get_abs_val();
snprintf(&disp[0][0], 21U, "Rot-Enc: %u", rot);
strcpy(&disp[1][0], "Line 2"); strcpy(&disp[1][0], "Line 2");
strcpy(&disp[3][0], "Shimatta Reflow"); strcpy(&disp[3][0], "Shimatta Reflow");

View File

@ -421,7 +421,7 @@ enum lcd_fsm_ret lcd_fsm_write_buffer(const char (*display_buffer)[21])
lcd_fsm_enable(false); lcd_fsm_enable(false);
ret = LCD_FSM_WAIT_CALL; ret = LCD_FSM_WAIT_CALL;
char_cnt++; char_cnt++;
if (char_cnt < 20) { if (char_cnt < 16) {
state_cnt = 5; state_cnt = 5;
} else { } else {
state_cnt = 0; state_cnt = 0;