diff --git a/examples/web_client/web_client.html b/examples/web_client/web_client.html new file mode 100644 index 0000000..71aa2eb --- /dev/null +++ b/examples/web_client/web_client.html @@ -0,0 +1,347 @@ + + + + + + + DShotRMT_Web + + + + +

DShotRMT Control Demo

+
+ +
+
+ ARMING SWITCH + +
+
+ DISARMED +
+
+ ⚠️ Motor control disabled when disarmed +
+
+ + +
+
0
+ +
+ +
+ RPM: -- +
+
+ + + + + diff --git a/examples/web_client/web_client.ino b/examples/web_client/web_client.ino index 1bc226e..79c9004 100644 --- a/examples/web_client/web_client.ino +++ b/examples/web_client/web_client.ino @@ -16,7 +16,7 @@ #include // WiFi Client Configuration - UPDATE THESE VALUES! -static constexpr auto *WIFI_SSID = "YOUR_SSID"; // Enter your WiFi SSID +static constexpr auto *WIFI_SSID = "YOUR_SSID"; // Enter your WiFi SSID static constexpr auto *WIFI_PASSWORD = "YOUR_PASSWORD"; // Enter your WiFi password // Connection timeout in milliseconds diff --git a/src/web_content.h b/src/web_content.h index 1a4d8d9..d66c2fc 100644 --- a/src/web_content.h +++ b/src/web_content.h @@ -311,6 +311,10 @@ const char index_html[] PROGMEM = R"rawliteral( // Update UI based on arming status function updateArmingUI() { + + // Synch checkbox, as well + armingSwitch.checked = isArmed; + if (isArmed) { armingStatus.innerText = 'ARMED'; armingStatus.className = 'status-armed';