|
TempSensor_NXP_Arduino 1.1.0
Temperature sensor device operation sample code for Arduino
|
#include <TempSensor.h>
Public Types | |
| enum | mode { COMPARATOR , INTERRUPT } |
Public Member Functions | |
| TempSensor (uint8_t i2c_address) | |
| TempSensor (TwoWire &wire, uint8_t i2c_address) | |
| virtual | ~TempSensor () |
| virtual float | temp (void)=0 |
| virtual float | read (void) |
TempSensor operation library for Arduino
Released under the MIT license License
TempSensor class
TempSensor class is a base class for all temperature sensors All actual device class will be inherited from this class
Definition at line 25 of file TempSensor.h.
| enum TempSensor::mode |
| Enumerator | |
|---|---|
| COMPARATOR | Comparator mode |
| INTERRUPT | Interrupt mode |
Definition at line 28 of file TempSensor.h.
| TempSensor::TempSensor | ( | uint8_t | i2c_address | ) |
Definition at line 5 of file TempSensor.cpp.
| TempSensor::TempSensor | ( | TwoWire & | wire, |
| uint8_t | i2c_address ) |
Definition at line 6 of file TempSensor.cpp.
|
virtual |
Definition at line 7 of file TempSensor.cpp.
|
virtual |
|
pure virtual |