Remove accel from example

This commit is contained in:
Lukas Bachschwell 2019-12-27 15:37:08 +01:00
parent 9e5756ceef
commit fcc80b5843
Signed by: lbsadmin
GPG Key ID: CCC6AA87CC8DF425
1 changed files with 0 additions and 13 deletions

View File

@ -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