Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-8 committed Sep 22, 2024
2 parents 59a3437 + 4aac873 commit 402476a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gbg_program/_website.ino
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Do not edit. Auto generated from _wifi_site.html
#ifdef ARDUINO_RASPBERRY_PI_PICO_W
const char indexHTML[] = " <!DOCTYPE html> <html lang='en'> <head> <title>GBG CAR</title> </head> <body> <p>Use the buttons below to turn the car's joystick on and off.</p> <button onclick='fetch(\"/activate\");' style='font-size: 100px;'>GO</button> <button onclick='fetch(\"/deactivate\");' style='font-size: 200px; float: right;'>STOP</button> <br> <div id=\"status\" style=\"font-size: 50px;\">status: </div> </body> <script> async function loop() { var errorTimeout; try { // set timeout with prototype function errorTimeout = setTimeout(() => { document.getElementById(\"status\").innerHTML = \"status: disconnected\"; }, 150); const text = await fetch('/status'); document.getElementById(\"status\").innerHTML = \"status: \" + text; clearTimeout(errorTimeout); } catch (e) { clearTimeout(errorTimeout); console.log(e); document.getElementById(\"status\").innerHTML = \"status: disconnected\"; } } setInterval(loop, 200); </script> </html>";
const char indexHTML[] = " <!DOCTYPE html> <html lang='en'> <head> <title>GBG CAR</title> </head> <body> <p>Use the buttons below to turn the car's joystick on and off.</p> <button onclick='fetch(\"/activate\");' style='font-size: 100px;'>GO</button> <button onclick='fetch(\"/deactivate\");' style='font-size: 200px; float: right;'>STOP</button> <br> <div id=\"status\" style=\"font-size: 50px;\">status: </div> </body> <script> async function loop() { var errorTimeout; try { // set timeout with prototype function errorTimeout = setTimeout(() => { document.getElementById(\"status\").innerHTML = \"status: disconnected\"; console.log(\"error timeout\"); }, 150); console.log(\"loop\"); const text = await fetch('/status'); document.getElementById(\"status\").innerHTML = \"status: \" + text; clearTimeout(errorTimeout); } catch (e) { clearTimeout(errorTimeout); console.log(\"error caught\"); console.log(e); document.getElementById(\"status\").innerHTML = \"status: disconnected\"; } } setInterval(loop, 200); </script> </html>";
#endif
Binary file modified hex/standard-rpiPico-W/gbg_program.ino.uf2
Binary file not shown.

0 comments on commit 402476a

Please sign in to comment.