2 Commits

Author SHA1 Message Date
bd82f55966 Show rotary encode value on display 2020-05-04 21:36:53 +02:00
3d48bfb6a6 Fix lenght of LCD from 20 chars to 16 chars 2020-05-04 21:36:37 +02:00
2 changed files with 4 additions and 2 deletions

View File

@@ -214,7 +214,9 @@ int main()
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[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);
ret = LCD_FSM_WAIT_CALL;
char_cnt++;
if (char_cnt < 20) {
if (char_cnt < 16) {
state_cnt = 5;
} else {
state_cnt = 0;