diff options
author | Daniel Jones <daniel@danieljon.es> | 2024-10-09 19:01:25 +1100 |
---|---|---|
committer | Daniel Jones <daniel@danieljon.es> | 2024-10-09 19:01:25 +1100 |
commit | b43b035bf5b38bedac7819b80544ef7138e56ee0 (patch) | |
tree | 21e0cfb7b5d4f8ab7c683f31c13a5f5f1da3c4cc /src/matrixdisplay.cpp | |
parent | 513835bc354664bfaed5417e4911a74b05dd25d7 (diff) |
html changes
create function to send post requests, use it for reset and toggling.
Diffstat (limited to 'src/matrixdisplay.cpp')
-rwxr-xr-x | src/matrixdisplay.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/matrixdisplay.cpp b/src/matrixdisplay.cpp index 839a7af..3170395 100755 --- a/src/matrixdisplay.cpp +++ b/src/matrixdisplay.cpp @@ -290,6 +290,10 @@ void handlecmd() myDisplay.displayShutdown(!displayon); } } + else if (strcmp(cmd, "restart") == 0) + { + resetesp32(); + } } server.send(200, "application/json", ""); } @@ -600,24 +604,11 @@ void nextmessage() globalconf.pos++; } -void doom() -{ - myDisplay.displayText("DAYS", PA_CENTER, 40, 2000, PA_SCROLL_DOWN, PA_FADE); - while (!myDisplay.displayAnimate()) - { - } - myDisplay.displayText("LEFT", PA_CENTER, 40, 2000, PA_OPENING, PA_OPENING); - while (!myDisplay.displayAnimate()) - { - } -} - void loop() { if (displayon && myDisplay.displayAnimate()) { nextmessage(); - // doom(); myDisplay.displayReset(); } } |