Hello,
I am working on a project that has 4 different pages. With these 4 pages, I need to get the current page of the Nextion on to the Arduino Mega so it can run certain codes depending on the current page. On the 4th page I need to get the textbox information when a button is pressed.
I have got both a program for the current page and the textbox information working when they are in separate programs. I have attached the working textbox program into the zip.
The problems I get is when I try to combine the two programs together. When I do this, the current page program still works and the current page number variable I have set changes along with the variable I have set to change under those pages. But, the Arduino doesn't read the textbox anymore when the button for it is pressed.
Also, in the current page number program, I get messages such as "[1843:1,0,Keyboard] [1831:2,0,Leaderboard] [1819:3,0,Game]" printed out in the serial monitor when I change the pages with the combined program but it does not happen when it's just the textbox program.
So I would like help on figuring out why
- those above messages display only when the programs are combined and how to get rid of them
2.when the programs are combined the textbox portion of the program no longer works
Thank you.
Nextion Files and Programs.zip (7.3 KB)