Hello! I am new to programming in Arduino and I recently bought a Nextion screen for a project where I have several pages:
1.- Home screen (it only has two buttons)
2.- Move servos
3.- Read sensor data
I have managed to get both things to work for me, but if I load them at the same time, not having the sensor data reading in a function, anything blocks me, and I cannot move the servos. Any ideas to solve it? It occurred to me that each thing could be activated/deactivated, depending on whether we are on one page or another, but I don't really know how to receive the page I am on from Arduino. I have seen that if I put the "sendme" command in the Preinitialize Event of each page, the Nextion editor sends which page I am on, but I don't know how to read this data from Arduino. Does anyone know how to solve this?
Thank you so much
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.