Reverse High/low for relay

This commit is contained in:
mmcw-dev 2019-02-09 09:30:11 -05:00
parent cbb28212d6
commit b6a6b8a81e
1 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ void Pins_init () {
pinMode(PIN_CAMERA, OUTPUT); pinMode(PIN_CAMERA, OUTPUT);
pinMode(PIN_INDICATOR, OUTPUT); pinMode(PIN_INDICATOR, OUTPUT);
digitalWrite(PIN_CAMERA, LOW); digitalWrite(PIN_CAMERA, HIGH);
digitalWrite(PIN_INDICATOR, LOW); digitalWrite(PIN_INDICATOR, LOW);
} }
@ -86,10 +86,10 @@ void Frame () {
frame_start = millis(); frame_start = millis();
running = true; running = true;
digitalWrite(PIN_CAMERA, HIGH); digitalWrite(PIN_CAMERA, LOW);
digitalWrite(PIN_INDICATOR, HIGH); digitalWrite(PIN_INDICATOR, HIGH);
delay(200); delay(200);
digitalWrite(PIN_CAMERA, LOW); digitalWrite(PIN_CAMERA, HIGH);
delay(600); delay(600);
digitalWrite(PIN_INDICATOR, LOW); digitalWrite(PIN_INDICATOR, LOW);
running = false; running = false;