Navigation page troubleshooting
This commit is contained in:
@@ -495,11 +495,20 @@ lvgl:
|
|||||||
y: 45
|
y: 45
|
||||||
width: 220
|
width: 220
|
||||||
height: 220
|
height: 220
|
||||||
|
items:
|
||||||
|
pressed:
|
||||||
|
bg_color: 0xFFFF00
|
||||||
rows:
|
rows:
|
||||||
- buttons:
|
- buttons:
|
||||||
- id: navAdesOffice
|
- id: navAdesOffice
|
||||||
text: "Ade's Office"
|
text: "Ade's Office"
|
||||||
on_press:
|
control:
|
||||||
|
checkable: true
|
||||||
|
on_value:
|
||||||
|
then:
|
||||||
|
- if:
|
||||||
|
condition:
|
||||||
|
lambda: 'return x == 1;'
|
||||||
then:
|
then:
|
||||||
- lvgl.page.show:
|
- lvgl.page.show:
|
||||||
id: ades_office_page
|
id: ades_office_page
|
||||||
@@ -507,7 +516,13 @@ lvgl:
|
|||||||
time: 300ms
|
time: 300ms
|
||||||
- id: navGroundFloor
|
- id: navGroundFloor
|
||||||
text: "Ground Floor"
|
text: "Ground Floor"
|
||||||
on_press:
|
control:
|
||||||
|
checkable: true
|
||||||
|
on_value:
|
||||||
|
then:
|
||||||
|
- if:
|
||||||
|
condition:
|
||||||
|
lambda: 'return x == 1;'
|
||||||
then:
|
then:
|
||||||
- lvgl.page.show:
|
- lvgl.page.show:
|
||||||
id: ground_floor_page
|
id: ground_floor_page
|
||||||
@@ -516,7 +531,13 @@ lvgl:
|
|||||||
- buttons:
|
- buttons:
|
||||||
- id: nav3dPrinter
|
- id: nav3dPrinter
|
||||||
text: "3D Printer"
|
text: "3D Printer"
|
||||||
on_press:
|
control:
|
||||||
|
checkable: true
|
||||||
|
on_value:
|
||||||
|
then:
|
||||||
|
- if:
|
||||||
|
condition:
|
||||||
|
lambda: 'return x == 1;'
|
||||||
then:
|
then:
|
||||||
- lvgl.page.show:
|
- lvgl.page.show:
|
||||||
id: printer_status
|
id: printer_status
|
||||||
|
|||||||
Reference in New Issue
Block a user