Engduino  3.1.0
A fun device for learning coding
EngduinoThermistor.h
Go to the documentation of this file.
1 
14 #ifndef __ENGDUINOTHERMISTOR_H__
15 #define __ENGDUINOTHERMISTOR_H__
16 
17 #include <Arduino.h>
18 #include <Engduino.h>
19 
20 enum temperatureUnits {
21  CELSIUS,
22  KELVIN,
23  FAHRENHEIT
24 };
25 
27 {
28  private:
29 
30  public:
32  void begin();
33  void end();
34  float temperature(temperatureUnits units=CELSIUS);
35  float temperature(temperatureUnits units, float B, float T0, float R0, float R_Balance);
36  uint16_t temperatureRaw();
37 };
38 
39 extern EngduinoThermistorClass EngduinoThermistor;
40 
41 #endif
42 
void end()
end function - switch off the LEDs
Definition: EngduinoThermistor.cpp:56
void begin()
begin function - must be called before using other functions
Definition: EngduinoThermistor.cpp:45
EngduinoThermistorClass()
Constructor.
Definition: EngduinoThermistor.cpp:35
uint16_t temperatureRaw()
Get the raw potential divider reading.
Definition: EngduinoThermistor.cpp:141
float temperature(temperatureUnits units=CELSIUS)
Get the temperature.
Definition: EngduinoThermistor.cpp:73
Definition: EngduinoThermistor.h:26