I’m creating a code where pressing a certain button will cause the background color of all pages change. There’s three such buttons in total. I tried two methods to do this, first, I tried,
page0.bco=0
page1.bco=0
page2.bco=0
page3.bco=0
page4.bco=0
page5.bco=0
page6.bco=0
and in return, it gave me:
Total size of font:40,287
Page:page0 Memory Occupied:16+132=148
Page:page1 Memory Occupied:16+120=136
Page:page2 Memory Occupied:16+96=112
Page:page3 Memory Occupied:16+572=588
Page:page4 Memory Occupied:16+372=388
Page:page5 Memory Occupied:16+320=336
Page:page6 Memory Occupied:16+132=148
Error:Invalid Variables:page0.bco( Double click to jump to code)
Error:Invalid Variables:page1.bco( Double click to jump to code)
Error:Invalid Variables:page2.bco( Double click to jump to code)
Error:Invalid Variables:page3.bco( Double click to jump to code)
Error:Invalid Variables:page4.bco( Double click to jump to code)
Error:Invalid Variables:page5.bco( Double click to jump to code)
Error:Compile failed! 8 Errors, 0 Warnings,
Something notable here is that, it didn’t show any error for page6 which is the page I had the buttons in. So, I did some research and aparently, to use the command globally, I only needed the command “bco=0”
so, I tried that with the other two buttons. and the output was,
Available Memory:3584
Global Memory:16
Total size of picture:10,392
Total size of font:40,287
Page:page0 Memory Occupied:16+132=148
Page:page1 Memory Occupied:16+120=136
Page:page2 Memory Occupied:16+96=112
Page:page3 Memory Occupied:16+572=588
Page:page4 Memory Occupied:16+372=388
Page:page5 Memory Occupied:16+320=336
Page:page6 Memory Occupied:16+132=148
Error:Invalid Variables:page0.bco( Double click to jump to code)
Error:Invalid Variables:page1.bco( Double click to jump to code)
Error:Invalid Variables:page2.bco( Double click to jump to code)
Error:Invalid Variables:page3.bco( Double click to jump to code)
Error:Invalid Variables:page4.bco( Double click to jump to code)
Error:Invalid Variables:page5.bco( Double click to jump to code)
Error:Invalid Variables:bco( Double click to jump to code)
Error:Invalid Variables:bco( Double click to jump to code)
Error:Compile failed! 8 Errors, 0 Warnings,
How can I fix the code?
N/B: I’m only starting out with Nextion so, I don’t have much knowledge about the editor, display or the nextion script. Any help would be appreciated. Thank you for your help and sorry for the inconvenience.