Didnt know about the referencing other pages values with page.variable.val. Will definitely come in handy. You can also define device wide global variables in "Program.s" that can be accessed from all pages. Those values can also be sent too or read from as well. Still need to convert numbers to string if sending info from Nextion.
A bad way to do it. In such cases is used a global variable to keep the value/string. In loading the page the value of the variable is transferred to the box. If the info is updated by a microcontroller, it updates the global variable and a timer is charged to update the value of the box on the concerned page at some frequency.
Excellent video, I was getting that exact same compile error. This is what I needed. Is there a way to actually chance the .txt or .val characters PERMANENTLY by automatically inserting it as the default value on the attributes window. Specifically, I put a slider on the Nextion display and used dims=h0.val. Works just fine, if I dim the display to 50% its fixed at that value so next time is turned on brightness is still 50% BUT the .val for the slider STAYS at whatever is typed into the attributes field originally, in this case 100. So the actual brightness is 50% but the slider is all the way to the right at 100% upon next power up. Is there anyway to fix this. Thx
Didnt know about the referencing other pages values with page.variable.val. Will definitely come in handy. You can also define device wide global variables in "Program.s" that can be accessed from all pages. Those values can also be sent too or read from as well. Still need to convert numbers to string if sending info from Nextion.
Thank you for the great video. It's very helpful.
Brick Buffet welcome
A bad way to do it. In such cases is used a global variable to keep the value/string. In loading the page the value of the variable is transferred to the box. If the info is updated by a microcontroller, it updates the global variable and a timer is charged to update the value of the box on the concerned page at some frequency.
Thank you for the super video, I found what I need in this video.
Thanks for video
Great info. Thank you
thank you bro
can i move my rtc live value into pages?
Buenos videos. Saludos
Hello! Do you know how to do the same thing but with pictures? Thank you
This doesn't work for me, I copy the code word for word and it doesn't work :/
Thanks Sir
Excellent video, I was getting that exact same compile error. This is what I needed. Is there a way to actually chance the .txt or .val characters PERMANENTLY by automatically inserting it as the default value on the attributes window. Specifically, I put a slider on the Nextion display and used dims=h0.val. Works just fine, if I dim the display to 50% its fixed at that value so next time is turned on brightness is still 50% BUT the .val for the slider STAYS at whatever is typed into the attributes field originally, in this case 100. So the actual brightness is 50% but the slider is all the way to the right at 100% upon next power up. Is there anyway to fix this. Thx