mirror of
https://github.com/s00500/ESPUI.git
synced 2024-12-22 19:30:50 +00:00
Remove accel from example
This commit is contained in:
parent
9e5756ceef
commit
fcc80b5843
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user