first commit
This commit is contained in:
28
ESP8266_DOMOTICZ_OCTOPRINT_WEB/Modules.h
Normal file
28
ESP8266_DOMOTICZ_OCTOPRINT_WEB/Modules.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef Modules_h
|
||||
#define Modules_h
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <DallasTemperature.h>
|
||||
|
||||
#include "Pins.h"
|
||||
|
||||
// ################# Barometre ####
|
||||
#define ALTITUDE 19.0 // Altitude of SparkFun's HQ in Boulder, CO. in meters
|
||||
|
||||
//SFE_BMP180 pressure;
|
||||
// #####################
|
||||
|
||||
class Modules
|
||||
{
|
||||
public:
|
||||
Modules();
|
||||
bool readTemp();
|
||||
void sleep(int sleepTime);
|
||||
void relay(int pin, int value);
|
||||
private:
|
||||
public:
|
||||
double humidity = 0;
|
||||
double temp = 0;
|
||||
int end_filament = 0;
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user