mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 22:52:19 +03:00
4 mb version
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
//===========Firmware=============================================================================================================================================
|
||||
#define FIRMWARE_VERSION 272
|
||||
#define FLASH_SIZE_1MB true
|
||||
//#define FLASH_SIZE_1MB true
|
||||
#ifdef ESP8266
|
||||
#ifdef FLASH_SIZE_1MB
|
||||
#define FIRMWARE_NAME "esp8266-1mb"
|
||||
|
||||
41
include/items/vSensorAnalog.h
Normal file
41
include/items/vSensorAnalog.h
Normal file
@@ -0,0 +1,41 @@
|
||||
#pragma once
|
||||
#include "Global.h"
|
||||
#include <Arduino.h>
|
||||
#include "GyverFilters.h"
|
||||
|
||||
class SensorAnalog;
|
||||
|
||||
typedef std::vector<SensorAnalog> MySensorAnalogVector;
|
||||
|
||||
class SensorAnalog {
|
||||
public:
|
||||
|
||||
SensorAnalog(String key, unsigned long interval, unsigned int adcPin, int map1, int map2, int map3, int map4, float c);
|
||||
~SensorAnalog();
|
||||
|
||||
void loop();
|
||||
void readAnalog();
|
||||
|
||||
private:
|
||||
|
||||
unsigned long currentMillis;
|
||||
unsigned long prevMillis;
|
||||
unsigned long difference;
|
||||
|
||||
unsigned long _interval;
|
||||
|
||||
String _key;
|
||||
unsigned int _adcPin;
|
||||
|
||||
int _map1;
|
||||
int _map2;
|
||||
int _map3;
|
||||
int _map4;
|
||||
|
||||
float _c;
|
||||
|
||||
};
|
||||
|
||||
extern MySensorAnalogVector* mySensorAnalog;
|
||||
|
||||
extern void analogAdc();
|
||||
Reference in New Issue
Block a user