FSM mostly working, need to implement bufferd param changes

This commit is contained in:
2021-07-03 21:04:24 +02:00
parent af40298378
commit 1e8d24dc40
3 changed files with 131 additions and 270 deletions
-14
View File
@@ -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;