Skip to content

Commit d9aade5

Browse files
committed
syntax test
1 parent bb2e195 commit d9aade5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,28 +39,28 @@ At the start of your sketch, the library header file is included using the follo
3939
Before the arduino ```setup()``` function, create a Soil Sensor object in your file with the following declaration:
4040

4141
For I2C bus:
42-
```c++
42+
~~~c++
4343
SparkFunSoilMoistureSensorI2C mySoilSensor; // Create an instance of the sensor class
44-
```
44+
~~~
4545

4646
For SPI bus:
47-
```c++
47+
~~~c++
4848
SparkFunSoilMoistureSensorSPI mySoilSensor; // Create an instance of the sensor class
49-
```
49+
~~~
5050

5151

5252
### Initialization
5353

5454
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.
5555

56-
```c++
56+
~~~c++
5757
if (mySoilSensor.begin() == false)
5858
{
5959
Serial.println("Soil Moisture Sensor not detected at default I2C address. Verify the sensor is connected. Stopping.");
6060
while (1)
6161
;
6262
}
63-
```
63+
~~~
6464

6565
The begin method returns true if the sensor is connected and available, and false if it is not. If a value of ```false``` is returned in the above example, the sketch execution is halted.
6666

0 commit comments

Comments
 (0)