//Create an arduino setup that has 10 lights. Starting with lights 1 and 3, move the lights along every 1 second to the next light. (E.g. lights 1 and 3, then 2 and 4, then 3 and 5, then 4 and 6 etc.). After 10 it should move back to 1.
void setup() {
// put your setup code here, to run once:
for (int i = 2; i <= 12; i++) {
pinMode(i, OUTPUT);
}
}
void loop() {
digitalWrite((millis()/1000 + -1)%10 + 2, 0);
digitalWrite((millis()/1000 + 0)%10 + 2, 1);
digitalWrite((millis()/1000 + 1)%10 + 2, 0);
digitalWrite((millis()/1000 + 2)%10 + 2, 1);
}