Skip to content

Commit

Permalink
Debug: Activate each line more slowly on start-up.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjf committed Jul 14, 2016
1 parent c107cc6 commit f13f35a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions clockwork-masters.ino
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,22 @@ void setup() {
Serial.begin(9600);
Serial.print("Init complete");

// TODO: Skip all this if a DIP-switch tells us to.

// Half a second after power on don't do anything, so
// our humans can look at the line which may be faulty.
digitalWrite(PWR_LED, LOW);
delay(500);

// Pulse our power light to show we're running.
// Also pulse our lines to test they're working.
for (i=0; i < OUTPUTS; i++) {
digitalWrite(PWR_LED, LOW);
analogWrite(LINE[i], 255);
delay(250);
digitalWrite(PWR_LED, HIGH);
analogWrite(LINE[i], 255);
delay(1000);
digitalWrite(PWR_LED, LOW);
analogWrite(LINE[i], 0);
delay(125);
delay(250);
}

}
Expand Down

0 comments on commit f13f35a

Please sign in to comment.