AVR Studio - ATmega8 - myAVR.de MK2 Board Hi im learning to switch 2 leds on and off. my problem: how can i control only 1 bit of the whole port?
1 | DDRC = 0xFF; |
2 | PORTC = 0x01; // Turn LED 1 on |
3 | PORTC = 0x02; // Turn LED 2 on |
The problem: the second i turn on number 2, i also turn off number one. Is there a way of saying Byte.Bit, or PORTC.firstBit thanks for your help