das müsste gehen.
Code:#include <avr/io.h> #include <util/delay.h> int main(void){ DDRB = 0xff; PORTB = 0x04; while (1) { PORTB |= (1<<PB4) | (1<<PB5); //4 und 5 high auf B _delay_ms(5000); PORTB &= ~( (1<<PB4) | (1<<PB5)); //4 und 5 auf low B _delay_ms(5000); } return 0; }
Lesezeichen