upm
0.7.1
Sensor/Actuator repository for libmraa (v1.0.0)
|
API for the Grove Temperature Sensor. More...
Basic UPM module for the Grove temperature sensor on analog
Public Member Functions | |
GroveTemp (unsigned int pin, float scale=1.0) | |
~GroveTemp () | |
float | raw_value () |
int | value () |
![]() | |
std::string | name () |
Additional Inherited Members | |
![]() | |
std::string | m_name |
GroveTemp | ( | unsigned int | pin, |
float | scale = 1.0 |
||
) |
Grove analog temperature sensor constructor
pin | Analog pin to use |
scale | Scaling factor for raw analog value from the ADC, useful for mixed 3.3V/5V boards |
float raw_value | ( | ) |
Gets the raw value from the AIO pin
int value | ( | ) |
Gets the temperature in Celsius from the sensor