29 lines
508 B
C++
29 lines
508 B
C++
#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
|