![]() |
SparkFun Soil Moisture Sensor
v1.0.1-2-g96f40cb
Library for the SparkFun Soil Moisture Sensor
|
Header file for the soil moisture sensor class. More...
#include <stdint.h>
#include <sfTk/sfToolkit.h>
#include <sfTk/sfTkII2C.h>
#include <sfTk/sfTkISPI.h>
Go to the source code of this file.
Classes | |
class | sfDevSoilMoisture |
Class representing the soil moisture sensor. More... | |
Macros | |
#define | SF_SOIL_MOISTURE_DEFAULT_I2C_ADDRESS 0x28 |
Default I2C address for the soil moisture sensor. More... | |
#define | SF_SOIL_MOISTURE_MAX_VALUE 1023 |
Maximum value for the soil moisture sensor. More... | |
Header file for the soil moisture sensor class.
This file contains the class definition for the soil moisture sensor, including methods for initialization, reading moisture values, controlling the on-board LED, and setting the I2C address.
SPDX-License-Identifier: MIT
#define SF_SOIL_MOISTURE_DEFAULT_I2C_ADDRESS 0x28 |
Default I2C address for the soil moisture sensor.
This macro defines the default I2C address (0x28) used by the soil moisture sensor.
#define SF_SOIL_MOISTURE_MAX_VALUE 1023 |
Maximum value for the soil moisture sensor.
This macro defines the maximum value (1023) for the soil moisture sensor, which corresponds to the highest reading from the 10-bit ADC. 2^10 = 1024-1