2 Möglichkeiten ?:
oderCode:while (1) { if (!(PINB & (1<<1))) { PORTC|=(1<<PC5); } else { PORTC&=~(1<<5); } }Code:while (1) { if(PINB & (1<<1)) { PORTC&=~(1<<5); } else { PORTC|=(1<<PC5); } }
2 Möglichkeiten ?:
oderCode:while (1) { if (!(PINB & (1<<1))) { PORTC|=(1<<PC5); } else { PORTC&=~(1<<5); } }Code:while (1) { if(PINB & (1<<1)) { PORTC&=~(1<<5); } else { PORTC|=(1<<PC5); } }
Linus TorvaldSoftware is like s e x: its better when its free.
Lesezeichen