mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
34 lines
689 B
C++
34 lines
689 B
C++
#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 writeLCD2004();
|
|
|
|
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
|