im trying to play with the LED's using the parallel port. it did light but then the previous instructions are cleared off. let say i on the bit 1, then i on the bit 2 but bit is automatically is off. .please do help me..
Printable View
im trying to play with the LED's using the parallel port. it did light but then the previous instructions are cleared off. let say i on the bit 1, then i on the bit 2 but bit is automatically is off. .please do help me..
If you write 1 to the port to turn on LED1, and 2 to turn on LED2, you write 3 to turn them both on. Basic binary arithmetic. Is this what you're doing?
(If you write 2, bit 0 is 0, turning it off, it's not ignored or left the way it was the last time you wrote a 1.)