i have 3 pins left and i need to control 10 leds what should i do to perform this ?
Use shiftout() command to 2 serial in-parallel out shift registers, with current limit resistors, to control the LEDs.
i have 3 pins left in my arduino and i need to control 10 leds what should i do ?
Get a couple of shift registers.
And stop cross-posting.
ok sry for that can you pls explain me how to use a shift register and program it ? such as if a button is pressed 5 times 5 leds will light up
First off, go to Digital section of the learning page
and understand how to detect button pushes & Debounce them.
Next,
come back here for help on understanding shift registers:
http://arduino.cc/en/Reference/ShiftOut
Then we can tackle the logic of detecting how many presses, clearing the shift register, etc.