From 72ea9dea84a60e8b97068fafcb37afd8a13965e0 Mon Sep 17 00:00:00 2001 From: Thammi Date: Thu, 29 Aug 2013 20:57:29 +0200 Subject: [PATCH] Add motor test application --- firmware/apps/motor.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 firmware/apps/motor.c diff --git a/firmware/apps/motor.c b/firmware/apps/motor.c new file mode 100644 index 0000000..b066d15 --- /dev/null +++ b/firmware/apps/motor.c @@ -0,0 +1,12 @@ +#include +#include + +static void run(void) { + if(button_clicked(LEFT)) { + motor_inv(); + led_inv(LEFT); + led_inv(RIGHT); + } +} + +REG(run);