Start a new topic

Tone generation loop and timers

I'd like to push a button and have a few frequencies loop though two channels every 128ms and continue to loop while navigating through other screens.

What do I need to do this?


For example pushing the button needs to loop these commands.


push button

while ()
{printh 62 66 30 30 30 30 31 33 36 30 37 0A 

wait 128ms

printh 62 66 30 30 30 30 31 33 38 35 37 0A

wait 128ms

printh 62 66 30 30 30 30 31 37 31 34 34 0A

wait 128ms}


I'm not sure how to use the timer for the 128ms wait. Also would like ability to have multiple buttons enabled hopping through multiple frequency sets. Can timers stack and wait for each other?


1 Comment

 

Forum has been closed since the Nov. 15, 2017  23:59:59.

Please use new forum nextion.itead.cc


Login or Signup to post a comment