upm
0.5.1
Sensor/Actuator repository for libmraa (v0.9.1)
|
API for the Grove Temperature Sensor. More...
Basic UPM module for the Grove temperature sensor on analog
Public Member Functions | |
GroveTemp (unsigned int pin) | |
~GroveTemp () | |
float | raw_value () |
int | value () |
Public Member Functions inherited from Grove | |
std::string | name () |
Additional Inherited Members | |
Protected Attributes inherited from Grove | |
std::string | m_name |
GroveTemp | ( | unsigned int | pin | ) |
Grove analog temperature sensor constructor
pin | Analog pin to use |
float raw_value | ( | ) |
Gets the raw value from the AIO pin
int value | ( | ) |
Gets the temperature in Celsius from the sensor