upm
0.5.1
Sensor/Actuator repository for libmraa (v0.9.1)
|
API for the Grove Moisture Sensor. More...
UPM module for the Grove Moisture Sensor. This sensor can be used to detect the moisture content of soil or whether there is water around the sensor. As the moisture content increases, so does the value that is read. Note: this sensor is not designed to be left in soil nor to be used outdoors.
Public Member Functions | |
GroveMoisture (int pin) | |
~GroveMoisture () | |
int | value () |
GroveMoisture | ( | int | pin | ) |
Grove analog moisture sensor constructor
pin | Analog pin to use |
~GroveMoisture | ( | ) |
GroveMoisture destructor
int value | ( | ) |
Gets the moisture value from the sensor