markthespark:
would this sketch be ok once i mod it ?
http://joesgizmos.wordpress.com/2012/07/06/twinkle-leds/i'm getting in to multiplexing soon
If you use an array like:
const int LED_Pins[] = {2,3,4,5,6,7,8,9,10};
instead of :
#define LED1 2
#define LED2 3
#define LED3 4
#define LED4 5
#define LED5 6
#define LED6 7
#define LED7 8
#define LED8 9
#define LED9 10
it will be much easier to expand and easier to manipulate LEDs by index.