Read button state during setup

This commit is contained in:
Gabriel Augendre 2023-01-04 10:05:04 +01:00
parent 124b73035c
commit 70f47e8668

View file

@ -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())