Pages: 1 2 [3]   Go Down
Author Topic: Controlling an array with analog input  (Read 2880 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Offline Offline
Brattain Member
Karma: 309
Posts: 26527
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
#define LED 30
#define LED 31
#define LED 32
#define LED 33
#define LED 34
#define LED 35
#define LED 36
#define LED 37
« Last Edit: April 27, 2010, 02:14:59 pm by AWOL » Logged

"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.

Offline Offline
Full Member
Karma: 0
Posts: 176
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley  SuperHeros!! smiley

Pages: 1 2 [3]   Go Up
Jump to: