Make blinker simpler
This commit is contained in:
parent
9400caa634
commit
ccf0497c35
|
@ -11,8 +11,8 @@ static void blinker(void) {
|
|||
led_inv(RIGHT);
|
||||
led_inv(LEFT);
|
||||
|
||||
uint8_t i;
|
||||
for(i = 0; i < 50; ++i) {
|
||||
wait_ms(500);
|
||||
|
||||
if(button_clicked(RIGHT)) {
|
||||
motor_on();
|
||||
}
|
||||
|
@ -21,8 +21,6 @@ static void blinker(void) {
|
|||
motor_off();
|
||||
}
|
||||
|
||||
wait_ms(10);
|
||||
}
|
||||
}
|
||||
|
||||
REGISTER(blinker, init, NULL);
|
||||
|
|
Loading…
Reference in New Issue
Block a user