Add "storage mode" to protect EPDs (lowest button while booting)

This commit is contained in:
Djuri 2024-03-18 17:17:04 +01:00
parent 37c57b7d97
commit 23ef2a64cc
2 changed files with 26 additions and 5 deletions

View file

@ -31,6 +31,16 @@ void setup()
}
}
{
if (mcp1.digitalRead(0) == LOW)
{
// Then loop forever to prevent anything else from writing to the screen
while (true) {
delay(1000);
}
}
}
tryImprovSetup();
setupWebserver();