Go Down

Topic: Controlling an array with analog input (Read 6364 times) previous topic - next topic


Apr 27, 2010, 09:05 pm Last Edit: Apr 27, 2010, 09:14 pm by AWOL Reason: 1
I'd really, really try to learn about arrays.
It'll reward you in the end.
Your code will be shorter, cleaner and easier to visualise.

Leaves fewer dark corners for the bugs to hide in too.

Here's an example:
Code: [Select]
#define LED 30
#define LED 31
#define LED 32
#define LED 33
#define LED 34
#define LED 35
#define LED 36
#define LED 37
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.


Sure thing! I'm always in a rush and trying to steal time! Code Camp.......That's where I need to be for a couple of intensive weeks ;D
   Thanks AWOL, PaulS and gbulmer :)  SuperHeros!! :)

Go Up