Hi All,
Apologies in advance, I'm new to forums...
I am using a Nextion Touch Screen NX8048P050-011R-Y/NX8048P050-011C-Y (I think the Capacitive touch one). I have set up several screens for my project and am now starting to piece it all together. I will be using it in conjunction with an Arduino Uno. The Arduino will be sending and receiving, from, and to the nextion, mostly values. The Nextion does not do any calculations it just stores setting values for the Arduino to read.
The first part of this project I am just programming the Nextion screens so the operator can set the variables for the Arduino to read.
I have several screens programed, two of which are Operate and Settings.
On the "Operate" screen I have a gauge z1 which is just a static value on the gauge, it is to indicate a maximum position on the gauge Pic it is overlaying, On the screen "Settings" in n8 the value to use is stored.
My question is, what is the correct format to use when addressing a value from another screen. I just cant seem to find examples that work. I have tried, z1.val=page Settings n8.val (vscope for n8 and the "Settings" page is also set to global)
I get invalid variable page error.
It may also be beneficial to change the names of the pages to 0, 1, 2,,,, etc jus as they are at the moment they are easy to follow foe me.
I will most likely have more questions regarding this project but at the moment I am just trying to get the Nextion screen to function as I need it to. Then once it is all Ok I will start on the Arduino "Control" part of the jigsaw.
Thanks,
Jeremy