mirror of
https://github.com/Crocmagnon/buzzer.git
synced 2024-11-21 23:48:07 +01:00
Read button state during setup
This commit is contained in:
parent
124b73035c
commit
70f47e8668
1 changed files with 1 additions and 0 deletions
|
@ -174,6 +174,7 @@ void setup()
|
||||||
display.display();
|
display.display();
|
||||||
|
|
||||||
pinMode(BUTTON, INPUT_PULLUP);
|
pinMode(BUTTON, INPUT_PULLUP);
|
||||||
|
buttonLastState = digitalRead(BUTTON);
|
||||||
|
|
||||||
// Setup SPIFFS
|
// Setup SPIFFS
|
||||||
if (!SPIFFS.begin())
|
if (!SPIFFS.begin())
|
||||||
|
|
Loading…
Reference in a new issue