#define __AVR_ATmega2560__ #define F_CPU 16000000UL #include #include void main() { // DDRB = 0b10000000; // // while(1) { // PORTB = 0b10000000; // _delay_ms(500); // PORTB = 0b00000000; // _delay_ms(500); // } DDRF = 0b11111111; PORTF = 0b11111111; uint8_t a = 0; while(1) { PORTF = a++; _delay_ms(10); } }