mirror of
https://github.com/Crocmagnon/buzzer.git
synced 2024-11-25 01:18:06 +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