Skip to content

Commit fe688b9

Browse files
committed
syntax test
1 parent b9739bd commit fe688b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,29 @@ The following outlines the general use of the library in an Arduino Sketch.
3232

3333
At the start of your sketch, the library header file is included using the following statement:
3434

35-
~~~c++
35+
~~~cpp
3636
#include "SparkFun_Soil_Moisture_Sensor.h"
3737
~~~
3838

3939
Before the arduino ```setup()``` function, create a Soil Sensor object in your file with the following declaration:
4040

4141
For I2C bus:
4242

43-
~~~c++
43+
~~~cpp
4444
SparkFunSoilMoistureSensorI2C mySoilSensor; // Create an instance of the sensor class
4545
~~~
4646

4747
For SPI bus:
4848

49-
~~~c++
49+
~~~cpp
5050
SparkFunSoilMoistureSensorSPI mySoilSensor; // Create an instance of the sensor class
5151
~~~
5252

5353
### Initialization
5454

5555
In the Arduino ```setup()``` function, initialize the sensor by calling the begin method. This method is called after the Arduino `Wire` (I2C) library is initialized.
5656

57-
~~~c++
57+
~~~cpp
5858
if (mySoilSensor.begin() == false)
5959
{
6060
Serial.println("Soil Moisture Sensor not detected at default I2C address. Verify the sensor is connected. Stopping.");

0 commit comments

Comments
 (0)