upm  0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
Public Member Functions | List of all members

API for the Grove Temperature Sensor. More...

Detailed Description

Basic UPM module for the Grove temperature sensor on analog

grovetemp.jpg

Public Member Functions

synchronized void delete ()
 
 GroveTemp (long pin)
 
float raw_value ()
 
int value ()
 
- Public Member Functions inherited from Grove
synchronized void delete ()
 
String name ()
 

Constructor & Destructor Documentation

GroveTemp ( long  pin)

Grove analog temperature sensor constructor

Parameters
pinAnalog pin to use

Member Function Documentation

float raw_value ( )

Gets the raw value from the AIO pin

Returns
Raw value from the ADC
int value ( )

Gets the temperature in Celsius from the sensor

Returns
Normalized temperature in Celsius
Inheritance diagram for GroveTemp:
Inheritance graph
[legend]
Collaboration diagram for GroveTemp:
Collaboration graph
[legend]

The documentation for this class was generated from the following file: