1
0
mirror of https://github.com/s00500/ESPUI.git synced 2025-06-11 02:30:39 +00:00

More ducumentation

This commit is contained in:
2019-12-29 14:35:54 +01:00
parent 2b4141fed3
commit 71576d7686
9 changed files with 67 additions and 38 deletions

View File

@ -207,7 +207,6 @@ void setup(void) {
ESPUI.number("Numbertest", &numberCall, ControlColor::Alizarin, 5, 0, 10);
graphId = ESPUI.graph("Graph Test", ControlColor::Wetasphalt);
ESPUI.gauge("Gauge Test", ControlColor::Wetasphalt, 58, 0, 100); // Gauge has
/*
* .begin loads and serves all files from PROGMEM directly.

View File

@ -18,7 +18,6 @@ const char* hostname = "espui";
uint16_t button1;
uint16_t switchOne;
uint16_t status;
uint16_t millisLabelId;
void numberCall( Control* sender, int type ) {
Serial.println( sender->value );
@ -255,7 +254,6 @@ void loop( void ) {
static bool switchi = false;
if ( millis() - oldTime > 5000 ) {
ESPUI.updateControlValue( millisLabelId, String( millis() ) );
switchi = !switchi;
ESPUI.updateControlValue( switchOne, switchi ? "1" : "0" );