MakeBlock Drive Updated Updated library for MakeBlock Ranger

Loading...
Searching...
No Matches
MeHumitureSensor.h
Go to the documentation of this file.
1
47#ifndef MeHumitureSensor_H
48#define MeHumitureSensor_H
49
50#include <stdint.h>
51#include <stdbool.h>
52#include <Arduino.h>
53#include "MeConfig.h"
54
55#ifdef ME_PORT_DEFINED
56#include "MePort.h"
57#endif // ME_PORT_DEFINED
58
64#ifndef ME_PORT_DEFINED
65 class MeHumiture
66#else // !ME_PORT_DEFINED
67class MeHumiture : public MePort
68#endif // !ME_PORT_DEFINED
69{
70 public:
71#ifdef ME_PORT_DEFINED
78 MeHumiture(void);
79
86 MeHumiture(uint8_t port);
87#else // ME_PORT_DEFINED
102 MeHumiture(uint8_t port);
103#endif // ME_PORT_DEFINED
104
119 void setpin(uint8_t port);
120
133 void update(void);
134
147 uint8_t getHumidity(void);
148
161 uint8_t getTemperature(void);
162
178 uint8_t getValue(uint8_t index);
179
194 double getFahrenheit(void);//Celsius degrees to Fahrenheit
195
210 double getKelvin(void);
211
228 double getdewPoint(void);
229
246 double getPointFast(void);
247
248 private:
249 uint8_t Humidity;
250 uint8_t Temperature;
251 uint8_t _DataPin;
252};
253
254#endif
255
MeConfig.h
Configuration file of library.
MePort.h
Header for MePort.cpp module.
MeHumiture
Driver for humiture sensor device.
Definition MeHumitureSensor.h:69
MeHumiture::getValue
uint8_t getValue(uint8_t index)
Definition MeHumitureSensor.cpp:320
MeHumiture::MeHumiture
MeHumiture(void)
Definition MeHumitureSensor.cpp:94
MeHumiture::getFahrenheit
double getFahrenheit(void)
Definition MeHumitureSensor.cpp:346
MeHumiture::setpin
void setpin(uint8_t port)
Definition MeHumitureSensor.cpp:144
MeHumiture::getTemperature
uint8_t getTemperature(void)
Definition MeHumitureSensor.cpp:300
MeHumiture::getHumidity
uint8_t getHumidity(void)
Definition MeHumitureSensor.cpp:283
MeHumiture::update
void update(void)
Definition MeHumitureSensor.cpp:162
MeHumiture::getPointFast
double getPointFast(void)
Definition MeHumitureSensor.cpp:416
MeHumiture::getKelvin
double getKelvin(void)
Definition MeHumitureSensor.cpp:366
MeHumiture::getdewPoint
double getdewPoint(void)
Definition MeHumitureSensor.cpp:387
MePort
Port Mapping for RJ25.
Definition MePort.h:128