From 9b535f04aaa83788692d27dae71db2652bab623d Mon Sep 17 00:00:00 2001 From: Dmitry Borisenko <49808844+DmitryBorisenko33@users.noreply.github.com> Date: Sun, 26 Dec 2021 18:52:48 +0100 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B1=D0=B0=D0=B3=20=D1=81=20=D0=B4=D0=B0=D1=82=D1=87?= =?UTF-8?q?=D0=B8=D0=BA=D0=B0=D0=BC=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/YourSensor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/YourSensor.cpp b/src/YourSensor.cpp index ef4ce987..04b3cca1 100644 --- a/src/YourSensor.cpp +++ b/src/YourSensor.cpp @@ -26,7 +26,7 @@ LiquidCrystal_I2C LCD(0x27, 16, 2); BH1750 lightMeter; //создаем объект ADS1015 -//Adafruit_ADS1015 ads; +// Adafruit_ADS1015 ads; float yourSensorReading(String type, String paramsAny) { float value; @@ -53,7 +53,7 @@ float yourSensorReading(String type, String paramsAny) { //==========================================================LCD================================================================= if (type == "LCD") { 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")); LCD.print(toPrint); } @@ -96,6 +96,7 @@ void LCD_init() { LCD.init(); //инициализация дисплея LCD.backlight(); //включаем подсветку } + LCD_flag = false; } void BH1750_init() {