You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My name is Bob, from Nova Scotia Canada. I have a large format digital print business. I am interested in tinyML, and microcontrollers in general. I can get the above examples running independently, even in the same sketch. I want fauxmo to run a simple stepper test script, turn it on and off. From what I have been reading I have to put the stepper code in the main loop, and set a flag. Here is the sample that runs fine on my esp8266 board. https://www.airspayce.com/mikem/arduino/AccelStepper/ConstantSpeed_8pde-example.html
I added the AccelStepper ConstantSpeed header, and other files to the fauxmo example script, and added "stepper.runSpeed();" to the main loop, it runs the stepper, but how do I control it? Do I create a new callback with fauxmo.onSetState()? What code is used to flag what I want to run in the main loop. I know this is probably fairly basic, but not to me. Please put me out of my misery! Thanks in Advance!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Good day All,
My name is Bob, from Nova Scotia Canada. I have a large format digital print business. I am interested in tinyML, and microcontrollers in general. I can get the above examples running independently, even in the same sketch. I want fauxmo to run a simple stepper test script, turn it on and off. From what I have been reading I have to put the stepper code in the main loop, and set a flag. Here is the sample that runs fine on my esp8266 board. https://www.airspayce.com/mikem/arduino/AccelStepper/ConstantSpeed_8pde-example.html
I added the AccelStepper ConstantSpeed header, and other files to the fauxmo example script, and added "stepper.runSpeed();" to the main loop, it runs the stepper, but how do I control it? Do I create a new callback with fauxmo.onSetState()? What code is used to flag what I want to run in the main loop. I know this is probably fairly basic, but not to me. Please put me out of my misery! Thanks in Advance!
Beta Was this translation helpful? Give feedback.
All reactions