AVR/NLight/main.c

17 lines
212 B
C
Raw Permalink Normal View History

2018-01-08 19:13:54 -06:00
#include <avr/io.h>
#include <util/delay.h>
#include "iostuff.h"
int main() {
DDRD=~B4;
DDRB=B5;
for(;;) {
if (biton(PIND,B4)) {
PORTB&=~B5;
} else {
PORTB|=B5;
}
}
return 0;
}