void main ()
PORTD=0xff; // 0b11111111 , 255
Can you please tell me what this code is doing?
It is running around in a circle, counting from 0 to 8 and setting bits on a port.
Pretty useless really... unless that port connects to something.
If you want to know what the individual parts of the code ... switch(), if() etc. are doing... grab any good C language manual and look them up.
Thank you ,
you r righr since the port is connected to an LED
Ok... so what do I win?
Originally Posted by KABIDI
Progressively turning on LEDs until all eight are lit. Then turning all off and starting over.
- - - - - - - -
* - - - - - - -
* * - - - - - -
* * * - - - - -
* * * * - - - -
* * * * * - - -
* * * * * * - -
* * * * * * * -
* * * * * * * *