pentabug/firmware/apps/example_2.c

19 lines
262 B
C
Raw Normal View History

2015-03-11 21:36:52 +01:00
#include <pentabug/hal.h>
#include <pentabug/app.h>
// was erwartest du das passiert?
// wie kann man das Problem lösen?
static void example(void) {
if(button_state(LEFT)) {
led_inv(LEFT);
}
if(button_state(RIGHT)) {
motor_inv();
}
}
REG(example);