Blink LED on startup
This commit is contained in:
parent
6ada6b08ed
commit
a6de66eb66
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue