Skip to content

Commit db9a835

Browse files
committed
fix comment
1 parent dc6f21d commit db9a835

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/Example_03_LEDFlashMoisture/Example_03_LEDFlashMoisture.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ SparkFunSoilMoistureSensorI2C mySoilSensor; // Create an instance of the sensor
3131
// To do this, the following is done:
3232
// 1. Get the sensor value as a ration of moisture (0 - 1.0)
3333
// 2. Calculate the percentage of wetness and multiply by 10 using integer math (floor)- this gives a value of 0 to 10
34-
// 3. The LED flash_rate = value * increment_value, if value is 0, rate = <fast_value> seconds a value of 1 second for
35-
// 0% wetness and
36-
// "off" for > 90% wetness
34+
// 3. The LED flash_rate = value * increment_value, if value is 0 (0% moisture), rate = <fast_value> seconds. If the
35+
// value >= 90% (9 or 10), rate = <long_value> seconds. Otherwise, rate = value * increment_value
3736

3837
// Min flash rate in ms (2 seconds)
3938
#define FAST_FLASH_RATE 2000

0 commit comments

Comments
 (0)