mirror of
https://github.com/s00500/ESPUI.git
synced 2025-06-11 02:30:39 +00:00
More ducumentation
This commit is contained in:
@ -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.
|
||||
|
@ -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" );
|
||||
|
||||
|
Reference in New Issue
Block a user