Debian Codegraph @

examples/copy.c

raw symbols SCIP
1 #include <avr/io.h> // Include file for I/O operations
2
3 int main (void)
4 {
5 DDRA = 0; // Port A as Input
6 PORTA = 255; // Enable pullups
7 DDRB = 255; // Configure port B as output
8
9 while (1)
10 {
11 PORTB = PINA;
12 }
13 }