Add motor test application
This commit is contained in:
parent
067c9fe0e5
commit
72ea9dea84
12
firmware/apps/motor.c
Normal file
12
firmware/apps/motor.c
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include <pentabug/app.h>
|
||||
#include <pentabug/hal.h>
|
||||
|
||||
static void run(void) {
|
||||
if(button_clicked(LEFT)) {
|
||||
motor_inv();
|
||||
led_inv(LEFT);
|
||||
led_inv(RIGHT);
|
||||
}
|
||||
}
|
||||
|
||||
REG(run);
|
Loading…
Reference in New Issue
Block a user