pentabug/firmware/apps/example_1.c

20 lines
260 B
C
Raw Normal View History

2015-03-11 21:36:52 +01:00
#include <avr/io.h>
#include <pentabug/app.h>
// was bedeuten die einzelnen Worte?
// was passiert?
// geht das einfacher?
static void example(void) {
if(!(PINB & 1)) {
PORTD &= ~(1 << 4);
}
if(!(PINB & 2)) {
PORTC &= ~(1 << 2);
}
}
REG(example);