Gast
#181653
Wieso blinkt die LED nicht mir dem Code?? Was mache ich falsch? /********************************************* Taste-LED (1 LED) Compiler : winavr Chip type : AT90S2313 nst, 12.05.2005 *********************************************/ #include <avr/io.h> #include <inttypes.h> #ifndef F_CPU #define F_CPU 10000000UL /* Quarz mit 10.0000 Mhz */ #endif #include <avr/delay.h> int main(void) { DDRB &= 0xff; PORTB = 0xff; while (1) { PORTB |= ( 0 << 1); _delay_ms(1000); PORTB &= ~(1 << 1); _delay_ms(1000); } }