кастомный сенсор

This commit is contained in:
Dmitry Borisenko
2021-12-14 23:20:14 +01:00
parent 93a6a24254
commit 8984a8d143
5 changed files with 7 additions and 6 deletions

13
src/YourSensor.cpp Normal file
View File

@@ -0,0 +1,13 @@
#include "YourSensor.h"
float yourSensorReading(String type) {
float value;
if (type == "type1") {
value++;
} else if (type == "type2") {
value--;
} else if (type == "type3") {
value = value + 10;
}
return value;
}