|
upm
0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
|
API for the DFRobot LM35 Linear Temperature Sensor. More...
This sensor returns an analog voltage proportional to the temperature of the ambient environment.
It has a range of 2C to 150C.
This driver was developed using the DFRobot LM35 Linear Temperature Sensor
Public Member Functions | |
| synchronized void | delete () |
| LM35 (int pin, float aref) | |
| LM35 (int pin) | |
| float | getTemperature () |
| LM35 | ( | int | pin, |
| float | aref | ||
| ) |
LM35 constructor
| pin | Analog pin to use |
| aref | Analog reference voltage; default is 5.0 V |
| float getTemperature | ( | ) |
Returns the temperature in degrees Celcius
1.8.9.1