File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
Example_02_ReadingsAndLED
Example_03_LEDFlashMoisture
Example_04_ChangeI2CAddress Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2222#include " SparkFun_Soil_Moisture_Sensor.h" // CTRL+Click here to get the library: http://librarymanager/All#SparkFun_Soil_Moisture_Sensor
2323#include < Wire.h>
2424
25- SparkFunSoilMoistureSensorI2C mySoilSensor; // Create an instance of the sensor class
25+ SparkFunSoilMoistureSensor mySoilSensor; // Create an instance of the sensor class
2626
2727// Some Dev boards have their QWIIC connector on Wire or Wire1
2828// This #ifdef will help this sketch work across more products
Original file line number Diff line number Diff line change 2222#include " SparkFun_Soil_Moisture_Sensor.h" // CTRL+Click here to get the library: http://librarymanager/All#SparkFun_Soil_Moisture_Sensor
2323#include < Wire.h>
2424
25- SparkFunSoilMoistureSensorI2C mySoilSensor; // Create an instance of the sensor class
25+ SparkFunSoilMoistureSensor mySoilSensor; // Create an instance of the sensor class
2626
2727// Some Dev boards have their QWIIC connector on Wire or Wire1
2828// This #ifdef will help this sketch work across more products
Original file line number Diff line number Diff line change 2626#include " SparkFun_Soil_Moisture_Sensor.h" // CTRL+Click here to get the library: http://librarymanager/All#SparkFun_Soil_Moisture_Sensor
2727#include < Wire.h>
2828
29- SparkFunSoilMoistureSensorI2C mySoilSensor; // Create an instance of the sensor class
29+ SparkFunSoilMoistureSensor mySoilSensor; // Create an instance of the sensor class
3030
3131// The plan:
3232// The value of the sensor has the following range:
Original file line number Diff line number Diff line change 2222#include " SparkFun_Soil_Moisture_Sensor.h" // CTRL+Click here to get the library: http://librarymanager/All#SparkFun_Soil_Moisture_Sensor
2323#include < Wire.h>
2424
25- SparkFunSoilMoistureSensorI2C mySoilSensor; // Create an instance of the sensor class
25+ SparkFunSoilMoistureSensor mySoilSensor; // Create an instance of the sensor class
2626
2727// Define our alternate I2C address - the default address + 1
2828#define ALTERNATE_I2C_ADDRESS SFE_SOIL_MOISTURE_DEFAULT_I2C_ADDRESS + 1
Original file line number Diff line number Diff line change 3232//
3333// -----------------------------------------------------------------------------------------------
3434// Define our Arduino Object - I2C version
35- class SparkFunSoilMoistureSensorI2C : public sfDevSoilMoisture
35+ class SparkFunSoilMoistureSensor : public sfDevSoilMoisture
3636{
3737 public:
3838 /* *
You can’t perform that action at this time.
0 commit comments