Make blinker simpler

This commit is contained in:
Thammi 2013-09-05 22:15:28 +02:00
parent 9400caa634
commit ccf0497c35

View File

@ -11,8 +11,8 @@ static void blinker(void) {
led_inv(RIGHT); led_inv(RIGHT);
led_inv(LEFT); led_inv(LEFT);
uint8_t i; wait_ms(500);
for(i = 0; i < 50; ++i) {
if(button_clicked(RIGHT)) { if(button_clicked(RIGHT)) {
motor_on(); motor_on();
} }
@ -21,8 +21,6 @@ static void blinker(void) {
motor_off(); motor_off();
} }
wait_ms(10);
}
} }
REGISTER(blinker, init, NULL); REGISTER(blinker, init, NULL);