![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
ft. button press reset
Fork of BeaconDemo_RobotCode by
Diff: PsiSwarm/demo.cpp
- Revision:
- 5:598298aa4900
- Parent:
- 3:cd048f6e544e
- Child:
- 6:ff3c66f7372b
--- a/PsiSwarm/demo.cpp Mon Oct 12 12:39:35 2015 +0000 +++ b/PsiSwarm/demo.cpp Tue Oct 13 11:47:14 2015 +0000 @@ -83,23 +83,15 @@ switch(step) { case 0: mbed_led1 = 1; - mbed_led4 = 0; + mbed_led2 = 0; break; case 1: mbed_led2 = 1; mbed_led1 = 0; break; - case 2: - mbed_led3 = 1; - mbed_led2 = 0; - break; - case 3: - mbed_led4 = 1; - mbed_led3 = 0; - break; } step++; - if(step==4)step=0; + if(step==2)step=0; } else { mbed_led1 = 0; mbed_led2 = 0;