This may seem like a nooby question, but I have a cycle light with 5 LEDs:
* * * * *
And it has a button, which when pressed hase different modes:
- 1st press: all LEDs blink together
- 2nd press: all LEDs stay lit
- 3rd press: 1st LED goes on, then it goes of and 2nd LED goes on, so on till 5th, then 4th LED again...
- 4th press: it turns off.
I was wondering how to make this. I can make a simple circuit so that all are on. I was thinking, that something like an 8-pin microcontroller can be used to make them blink together, but for them to blink independently, I guess I will have to use a microcontroller with enough pins so that each LED has it's own?
But my bike light is pretty small and I don't think it is running an AtMega32 or something. How does it work?