|
@@ -154,7 +154,7 @@ static void draw_livingroom1(void) {
|
154
|
154
|
// 5
|
155
|
155
|
bool on = ui_status.light_corner || ui_status.light_sink || ui_status.light_workspace
|
156
|
156
|
|| ui_status.light_amp || ui_status.light_bench || ui_status.light_box
|
157
|
|
- || ui_status.light_kitchen || ui_status.light_pc;
|
|
157
|
+ || ui_status.light_kitchen || ui_status.light_pc || ui_status.pc_displays;
|
158
|
158
|
draw_button(on ? "All Lights Off" : "Wake Up Lights",
|
159
|
159
|
BTNS_OFF_X + BTN_W / 2 + BTN_W + BTN_GAP,
|
160
|
160
|
BTNS_OFF_Y + BTN_H / 2 + BTN_H + BTN_GAP,
|
|
@@ -206,6 +206,13 @@ static void draw_bathroom(void) {
|
206
|
206
|
BTNS_OFF_Y + BTN_H / 2 + BTN_H + BTN_GAP,
|
207
|
207
|
ui_status.bathroom_lights == BATH_LIGHT_BIG ? TFT_GREEN : TFT_RED);
|
208
|
208
|
|
|
209
|
+ // 3
|
|
210
|
+ // TODO own page?
|
|
211
|
+ draw_button("PC Displays",
|
|
212
|
+ BTNS_OFF_X + BTN_W / 2,
|
|
213
|
+ BTNS_OFF_Y + BTN_H / 2 + (BTN_H + BTN_GAP) * 2,
|
|
214
|
+ ui_status.pc_displays ? TFT_GREEN : TFT_RED);
|
|
215
|
+
|
209
|
216
|
// 4
|
210
|
217
|
draw_button("Bath Lights Off",
|
211
|
218
|
BTNS_OFF_X + BTN_W / 2 + BTN_W + BTN_GAP,
|
|
@@ -585,6 +592,8 @@ void ui_run(void) {
|
585
|
592
|
INVERT_BOOL(ui_status.light_sink);
|
586
|
593
|
} else if (ui_page == UI_LIVINGROOM2) {
|
587
|
594
|
INVERT_BOOL(ui_status.light_kitchen);
|
|
595
|
+ } else if (ui_page == UI_BATHROOM) {
|
|
596
|
+ INVERT_BOOL(ui_status.pc_displays);
|
588
|
597
|
}
|
589
|
598
|
writeMQTT_UI();
|
590
|
599
|
} else if ((p.x >= BTNS_OFF_X + BTN_W + BTN_GAP) && (p.x <= BTNS_OFF_X + BTN_W + BTN_GAP + BTN_W) && (p.y >= BTNS_OFF_Y) && (p.y <= BTNS_OFF_Y + BTN_H)) {
|
|
@@ -602,7 +611,7 @@ void ui_run(void) {
|
602
|
611
|
if (ui_page == UI_LIVINGROOM1) {
|
603
|
612
|
bool on = ui_status.light_corner || ui_status.light_sink || ui_status.light_workspace
|
604
|
613
|
|| ui_status.light_amp || ui_status.light_bench || ui_status.light_box
|
605
|
|
- || ui_status.light_kitchen || ui_status.light_pc;
|
|
614
|
+ || ui_status.light_kitchen || ui_status.light_pc || ui_status.pc_displays;
|
606
|
615
|
if (on) {
|
607
|
616
|
ui_status.light_amp = false;
|
608
|
617
|
ui_status.light_kitchen = false;
|
|
@@ -612,9 +621,11 @@ void ui_run(void) {
|
612
|
621
|
ui_status.light_corner = false;
|
613
|
622
|
ui_status.light_box = false;
|
614
|
623
|
ui_status.light_sink = false;
|
|
624
|
+ ui_status.pc_displays = false;
|
615
|
625
|
} else {
|
616
|
626
|
ui_status.light_corner = true;
|
617
|
627
|
ui_status.light_sink = true;
|
|
628
|
+ ui_status.pc_displays = true;
|
618
|
629
|
}
|
619
|
630
|
} else if (ui_page == UI_LIVINGROOM2) {
|
620
|
631
|
INVERT_BOOL(ui_status.light_box);
|