mirror of
https://github.com/Crocmagnon/buzzer.git
synced 2024-11-24 08:58: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();
|
||||
|
||||
pinMode(BUTTON, INPUT_PULLUP);
|
||||
buttonLastState = digitalRead(BUTTON);
|
||||
|
||||
// Setup SPIFFS
|
||||
if (!SPIFFS.begin())
|
||||
|
|
Loading…
Reference in a new issue