From fcc80b5843b8bcb0950b4b5d3da0faa1c3db91d3 Mon Sep 17 00:00:00 2001 From: Lukas Bachschwell Date: Fri, 27 Dec 2019 15:37:08 +0100 Subject: [PATCH] Remove accel from example --- examples/gui/gui.ino | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/examples/gui/gui.ino b/examples/gui/gui.ino index 14c59ac..ec6f4a1 100644 --- a/examples/gui/gui.ino +++ b/examples/gui/gui.ino @@ -43,17 +43,6 @@ void slider(Control *sender, int type) { Serial.println(sliderValueWithOffset); } -void accelCall(Control *sender, int type) { - Serial.print("Accel: ID: "); - Serial.print(sender->id); - Serial.print(", Value: "); - Serial.println(sender->value); - // Like all Control Values in ESPUI accel values are Strings. To use them as int simply do this: - int sliderValueWithOffset = sender->value.toInt() + 100; - Serial.print("Accel with offset"); - Serial.println(sliderValueWithOffset); -} - void buttonCallback(Control *sender, int type) { switch (type) { case B_DOWN: @@ -222,8 +211,6 @@ void setup(void) { graphId = ESPUI.graph("Graph Test", COLOR_WETASPHALT); ESPUI.gauge("Gauge Test", COLOR_WETASPHALT, 58, 0, 100); // Gauge has - ESPUI.accelerometer("Accel Test", &accelCall, COLOR_WETASPHALT); - /* * .begin loads and serves all files from PROGMEM directly. * If you want to serve the files from SPIFFS use ESPUI.beginSPIFFS