Nextion Editor: changing pages without buttons

Hello there!
I'm using a Nextion Display, but I ran into a problem.
After 5 seconds, I want to change to another page, without any input from the user.
I figure it has to involve delay(), but I don't know how to give the command to the display to do it.

Thanks in advance!

If you wan to display 2 pages with one page displayed for 5 seconds, you'd want some sort of toggle to indicate, after 5 seconds to display the other page.

something like

displaytimechange = 5000
bool tick
loop()

if timewentby - millis >+ displaytimechange

if tick display one page tick=false
if not tick display the other page tick = true
timewentby=millis

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.