Update reading powerState
This commit is contained in:
parent
dd9ced2962
commit
b3322b169b
@ -220,7 +220,6 @@ void setup() {
|
||||
|
||||
pinMode(PIN_TRIGGER_SHUFFLE, INPUT);
|
||||
pinMode(PIN_POWER_ON, INPUT);
|
||||
powerOnState = digitalRead(PIN_POWER_ON) == HIGH;
|
||||
pinMode(PIN_SEND_WIN, OUTPUT);
|
||||
digitalWrite(PIN_SEND_WIN, LOW);
|
||||
|
||||
@ -231,6 +230,8 @@ void setup() {
|
||||
pinMode(7, INPUT_PULLUP);
|
||||
pinMode(8, INPUT_PULLUP);
|
||||
|
||||
powerOnState = digitalRead(PIN_POWER_ON) == HIGH;
|
||||
|
||||
for (uint8_t i = 0; i < 12; i++)
|
||||
expander.write(i, HIGH);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user