Blink LED on startup

This commit is contained in:
Matthew McWilliams 2023-04-11 00:24:39 -04:00
parent 6ada6b08ed
commit a6de66eb66
1 changed files with 8 additions and 0 deletions

View File

@ -66,7 +66,12 @@ McopySerial mc;
void setup () { void setup () {
pins(); pins();
digitalWrite(LED_FWD, HIGH);
digitalWrite(LED_BWD, HIGH);
mc.begin(mc.PROJECTOR_IDENTIFIER); mc.begin(mc.PROJECTOR_IDENTIFIER);
delay(42);
digitalWrite(LED_FWD, LOW);
digitalWrite(LED_BWD, LOW);
} }
void loop () { void loop () {
@ -88,6 +93,9 @@ void pins () {
digitalWrite(PROJECTOR_FWD, HIGH); digitalWrite(PROJECTOR_FWD, HIGH);
digitalWrite(PROJECTOR_BWD, HIGH); digitalWrite(PROJECTOR_BWD, HIGH);
digitalWrite(LED_FWD, LOW);
digitalWrite(LED_BWD, LOW);
} }
void cmd (char val) { void cmd (char val) {