![]() |
flux sdk
v01.05.00-3-gedf3296
Embedded C++ SDK
|
Header file for the SparkFun Soil Moisture sensor device object. More...
Classes | |
| class | flxDevSoilMoisture |
| A class to interface with the SparkFun Soil Moisture sensor. More... | |
Macros | |
| #define | kSoilMoistureDeviceName "Soil Moisture Sensor" |
Header file for the SparkFun Soil Moisture sensor device object.
This file contains the definition of the device object for the SparkFun Soil Moisture sensor. Note - this is a GPIO device, which depends on the Soil Moisture Sensor being connected to defined GPIO pins. The required pins are VCC - a digitally controlled pin (to set low and high to power the sensor during reading), and Sensor - which is an ANALOG pin to read the sensor value. These pins are settable via properties.
The class provides methods to initialize the sensor, read moisture values, and calibrate the sensor for dry and wet states. It also includes properties to enable the sensor, set the GPIO pins, and retrieve the moisture values.
| #define kSoilMoistureDeviceName "Soil Moisture Sensor" |