mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 20:09:14 +03:00
исправил баг с датчиками
This commit is contained in:
@@ -53,7 +53,7 @@ float yourSensorReading(String type, String paramsAny) {
|
|||||||
//==========================================================LCD=================================================================
|
//==========================================================LCD=================================================================
|
||||||
if (type == "LCD") {
|
if (type == "LCD") {
|
||||||
LCD_init();
|
LCD_init();
|
||||||
LCD.setCursor(jsonReadInt(paramsAny, "с"), jsonReadInt(paramsAny, "k"));
|
LCD.setCursor(jsonReadInt(paramsAny, "c"), jsonReadInt(paramsAny, "k"));
|
||||||
String toPrint = jsonReadStr(paramsAny, "descr") + " " + jsonReadStr(configLiveJson, jsonReadStr(paramsAny, "val"));
|
String toPrint = jsonReadStr(paramsAny, "descr") + " " + jsonReadStr(configLiveJson, jsonReadStr(paramsAny, "val"));
|
||||||
LCD.print(toPrint);
|
LCD.print(toPrint);
|
||||||
}
|
}
|
||||||
@@ -96,6 +96,7 @@ void LCD_init() {
|
|||||||
LCD.init(); //инициализация дисплея
|
LCD.init(); //инициализация дисплея
|
||||||
LCD.backlight(); //включаем подсветку
|
LCD.backlight(); //включаем подсветку
|
||||||
}
|
}
|
||||||
|
LCD_flag = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BH1750_init() {
|
void BH1750_init() {
|
||||||
|
|||||||
Reference in New Issue
Block a user