Circuit 02 – More Blinking LEDs
So in the second starter circuit multiple LEDs are linked up and patterns created. The first one turns each LED on before turning each LED off. It uses an array and a couple of for loops. You can read the full explanation on ardx.org.
and this is the result
So for an alternative pattern you could write a binary counter which counts from 0 to any number less than 255 (we only have 8 bits so are limited to 255). Maybe an extension could be to add a red ‘overflow’ LED.
This is the code window.