FSM mostly working, need to implement bufferd param changes
This commit is contained in:
@@ -94,23 +94,9 @@ void setup() {
|
||||
os_timer_arm(&timer1, 20, true);
|
||||
}
|
||||
|
||||
#include <random>
|
||||
|
||||
uint32_t c = 0;
|
||||
|
||||
void loop() {
|
||||
// if(stairs.getState() == 0) {
|
||||
// delay(1000);
|
||||
|
||||
// // uint32_t t = rand() % stairs.getTicks();
|
||||
// // uint32_t d = rand() % 2;
|
||||
|
||||
// // stairs.setTick(t);
|
||||
// // stairs.setDirection(d);
|
||||
|
||||
// stairs.setDirection(!stairs.getDirection());
|
||||
// stairs.setState(1);
|
||||
// }
|
||||
if(inter){
|
||||
Serial.printf("interrupt\n");
|
||||
inter = 0;
|
||||
|
||||
Reference in New Issue
Block a user