uni

Thing1's amazing uni repo
Log | Files | Refs

action.ino (273B)


      1 #include <Servo.h>
      2 #include "actions.h"
      3 
      4 void
      5 setup() {
      6 	setupRobot();
      7 
      8 	action a1 = { {isButtonAPressed, isButtonBPressed}, moveFWD, NOR};
      9 
     10 	action as[] = {a1};
     11 
     12 	while (1) {
     13 		for (int i = 0; i < SIZE(as); i++) 
     14 			runAction(&as[i]);
     15 	}
     16 
     17 	delay(20000);
     18 }
     19 
     20 void loop() {}