Debian Codegraph @

microhope/microhope-doc/prog/copy.c

raw
1 #include <avr/io.h>
2
3 int main (void)
4 {
5 uint8_t val;
6 DDRA = 0; // Data Direction Register
7 DDRB = 1;
8
9 for(;;)
10 {
11 val = PINA;
12 PORTB = val;
13 }
14 }