Skip to content

Commit

Permalink
Update secretOrderDoorOpener.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
fah authored May 20, 2019
1 parent 0dc7b41 commit 8695b4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion secretOrderDoorOpener.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

const int NUMBER_OF_PINS = 3;
const int buttonOrder[NUMBER_OF_PINS] = {11, 13, 11}; // order of the pins
boolean state[NUMBER_OF_PINS] = {false, false, false}; // remember of correct pins. if all are true relais will switch on.
boolean state[NUMBER_OF_PINS]; // remember of correct pins. If all are true -> relay will switch on.
const int outputPin = 3;
const int relayTime = 1000; // ms

Expand All @@ -9,6 +10,7 @@ void setup() {
for ( int i = 0; i < NUMBER_OF_PINS; i++ ) {
pinMode(buttonOrder[i], INPUT_PULLUP);
}
clear();
pinMode(outputPin, OUTPUT);
Serial.println("Setup complete");
}
Expand Down

0 comments on commit 8695b4f

Please sign in to comment.