MakeBlock Drive Updated Updated library for MakeBlock Ranger

Loading...
Searching...
No Matches
MeOnBoardTemp.h
Go to the documentation of this file.
1
39#ifndef MeOnBoardTemp_H
40#define MeOnBoardTemp_H
41
42#include <stdint.h>
43#include <stdbool.h>
44#include <Arduino.h>
45#include "MeConfig.h"
46
47
48#ifdef ME_PORT_DEFINED
49#include "MePort.h"
50#endif // ME_PORT_DEFINED
51
52#define Gas_Exceeded (0x00)
53#define Gas_not_Exceeded (0x01)
54
60#ifndef ME_PORT_DEFINED
61 class MeOnBoardTemp
62#else // !ME_PORT_DEFINED
63class MeOnBoardTemp : public MePort
64#endif // !ME_PORT_DEFINED
65{
66 public:
67#ifdef ME_PORT_DEFINED
74 MeOnBoardTemp(void);
75
81 MeOnBoardTemp(uint8_t port);
82#else // ME_PORT_DEFINED
89 MeOnBoardTemp(uint8_t analog_pin)
90#endif // ME_PORT_DEFINED
105 void setpin(uint8_t analog_pin);
106
119 int16_t readAnalog(void);
120
133 float readValue(void);
134
135 private:
136 volatile uint8_t _analog_pin;
137};
138#endif
139
MeConfig.h
Configuration file of library.
MePort.h
Header for MePort.cpp module.
MeOnBoardTemp
Driver for Auriga On Board Temperature device.
Definition MeOnBoardTemp.h:65
MeOnBoardTemp::MeOnBoardTemp
MeOnBoardTemp(void)
Definition MeOnBoardTemp.cpp:54
MeOnBoardTemp::readValue
float readValue(void)
Definition MeOnBoardTemp.cpp:136
MeOnBoardTemp::readAnalog
int16_t readAnalog(void)
Definition MeOnBoardTemp.cpp:115
MePort
Port Mapping for RJ25.
Definition MePort.h:128