Sunday, January 11, 2009

Yesterday I wrote a code to contol four pins on the arduino to have four lights blink.
int pins[] = {13,12,11,10};
int num_pins = 4;

void setup()
int i;
for (i = 0; i < i =" 0;" i =" num_pins">= 0; i--)
digitalWrite(pins[i], HIGH);
digitalWrite(pins[i], LOW);
Then today my father and I started to wire and build the cell bot.
I still have questions,
1)How do I get more than one push button?
2)How do I get more than one loop?

No comments:

Post a Comment