mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
Добавляем необходимые файлы и первые записи в интервейс для экрана LCD2004
This commit is contained in:
@@ -87,6 +87,7 @@
|
||||
#define EnableSensorAny
|
||||
#define EnableTelegram
|
||||
#define EnableUart
|
||||
#define EnableSensorLCD2004
|
||||
#endif
|
||||
|
||||
#ifdef GATE_MODE
|
||||
|
||||
35
include/items/vSensorLCD2004.h
Normal file
35
include/items/vSensorLCD2004.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#ifdef EnableSensorLCD2004
|
||||
#pragma once
|
||||
#include <Arduino.h>
|
||||
#include <OneWire.h>
|
||||
#include "Global.h"
|
||||
|
||||
//ИНТЕГРИРУЮ: следим за наименованиями далее
|
||||
class SensorLCD2004;
|
||||
|
||||
typedef std::vector<SensorLCD2004> MySensorLCD2004Vector;
|
||||
|
||||
class SensorLCD2004 {
|
||||
public:
|
||||
//ИНТЕГРИРУЮ: обращаем внимание на параметры, берутся из таблицы настроек
|
||||
SensorLCD2004(unsigned long interval, unsigned int pin, unsigned int index, String addr, String key);
|
||||
~SensorLCD2004();
|
||||
|
||||
void loop();
|
||||
void readLCD2004();
|
||||
|
||||
private:
|
||||
unsigned long currentMillis;
|
||||
unsigned long prevMillis;
|
||||
unsigned long difference;
|
||||
unsigned long _interval;
|
||||
String _key;
|
||||
String _addr;
|
||||
unsigned int _pin;
|
||||
unsigned int _index;
|
||||
};
|
||||
|
||||
extern MySensorLCD2004Vector* mySensorLCD20042;
|
||||
|
||||
extern void LCD2004();
|
||||
#endif
|
||||
Reference in New Issue
Block a user