Skip to content

Commit 1028461

Browse files
authored
Merge pull request #34 from FoamyGuy/min_delay_continuous
minimum 20ms continuous read mode
2 parents ddf5087 + 980d4a2 commit 1028461

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_vl6180x.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,12 @@ def start_range_continuous(self, period: int = 100) -> None:
172172
173173
:param int period: Time delay between measurements, in milliseconds; the value you
174174
will be floored to the nearest 10 milliseconds (setting to 157 ms sets it to 150
175-
ms). Range is 10 - 2550 ms.
175+
ms). Range is 20 - 2550 ms.
176176
"""
177177
# Set range between measurements
178-
if not 10 <= period <= 2550:
178+
if not 20 <= period <= 2550:
179179
raise ValueError(
180-
"Delay must be in 10 millisecond increments between 10 and 2550 milliseconds"
180+
"Delay must be in 10 millisecond increments between 20 and 2550 milliseconds"
181181
)
182182

183183
period_reg = (period // 10) - 1

0 commit comments

Comments
 (0)