You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
379 B
Plaintext
31 lines
379 B
Plaintext
int i,foo;
|
|
boolean b;
|
|
|
|
void setup() {
|
|
|
|
pinMode(2, OUTPUT);
|
|
pinMode(3, OUTPUT);
|
|
pinMode(4, OUTPUT);
|
|
pinMode(5, OUTPUT);
|
|
pinMode(6, OUTPUT);
|
|
pinMode(7, OUTPUT);
|
|
pinMode(8, OUTPUT);
|
|
pinMode(9, OUTPUT);
|
|
|
|
b = false;
|
|
foo = 0;
|
|
|
|
|
|
}
|
|
|
|
void loop() {
|
|
delay(random(25)*0+15);
|
|
for (i = 0; i<=7; i++) {
|
|
digitalWrite(i+2,random(2));
|
|
}
|
|
// b = !b;
|
|
|
|
foo++;
|
|
|
|
}
|