Start a new topic

running other sections of code in the for loop

Hi there.  I am new to using the nextion display and am having troubles finding a similar example of what I am trying to do.  I am trying to incorporate an Arduino and display together.  I want the code to eventually be at a point where it will set the home points for servos and stepper motors.  For my proof of concept, I just want it to move a servo around.  I want the code to start and rotate the servo from 5 through 175 degrees and then listen to the nextion display until the user increments the servo past 100 degrees.  After it goes past 100 degrees I want the loop to start over again.  Any help would be greatly appreciated. 

1 Comment

This Forum closed since Nov 17, 2015

Use new forum at