Skip to content

Commit fd10215

Browse files
committed
removed I2C from i2c classname - just make the default be i2c, which is qwiic... SPI is a *special* case
1 parent ad7ad7e commit fd10215

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

examples/Example_01_BasicReadings/Example_01_BasicReadings.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
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

examples/Example_02_ReadingsAndLED/Example_02_ReadingsAndLED.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
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

examples/Example_03_LEDFlashMoisture/Example_03_LEDFlashMoisture.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
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:

examples/Example_04_ChangeI2CAddress/Example_04_ChangeI2CAddress.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
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

src/SparkFun_Soil_Moisture_Sensor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
//
3333
//-----------------------------------------------------------------------------------------------
3434
// Define our Arduino Object - I2C version
35-
class SparkFunSoilMoistureSensorI2C : public sfDevSoilMoisture
35+
class SparkFunSoilMoistureSensor : public sfDevSoilMoisture
3636
{
3737
public:
3838
/**

0 commit comments

Comments
 (0)