|
|
|
@ -18,7 +18,7 @@ void screen_manual_control(GuiEvent event) |
|
|
|
|
LcdBuffer_Write(&lcd, 0, 0, "== MANUÁLNÍ REŽIM =="); |
|
|
|
|
LcdBuffer_Write(&lcd, 1, 0, "1-4 ventil,0 vyp.vše"); |
|
|
|
|
|
|
|
|
|
LcdBuffer_SetCursor(&lcd, 2, 0, CURSOR_BOTH); |
|
|
|
|
//LcdBuffer_SetCursor(&lcd, 2, 0, CURSOR_BOTH);
|
|
|
|
|
|
|
|
|
|
snprintf(sbuf, sbuf_len, " %s %s %s %s ", |
|
|
|
|
valve1 ? "█1█" : " 1 ", |
|
|
|
@ -44,21 +44,25 @@ void screen_manual_control(GuiEvent event) |
|
|
|
|
case GUI_EVENT_KEY_1: |
|
|
|
|
valve1 = !valve1; |
|
|
|
|
set_one_relay(1, valve1); |
|
|
|
|
request_paint(); |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case GUI_EVENT_KEY_2: |
|
|
|
|
valve2 = !valve2; |
|
|
|
|
set_one_relay(2, valve2); |
|
|
|
|
request_paint(); |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case GUI_EVENT_KEY_3: |
|
|
|
|
valve3 = !valve3; |
|
|
|
|
set_one_relay(3, valve3); |
|
|
|
|
request_paint(); |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case GUI_EVENT_KEY_4: |
|
|
|
|
valve4 = !valve4; |
|
|
|
|
set_one_relay(4, valve4); |
|
|
|
|
request_paint(); |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case GUI_EVENT_SCREEN_DEINIT: |
|
|
|
|