From 980d4a207ecf6249445fd7cd59f4184ce312a56a Mon Sep 17 00:00:00 2001 From: foamyguy Date: Thu, 2 Jan 2025 14:49:58 -0600 Subject: [PATCH] minimum 20ms continuous read mode --- adafruit_vl6180x.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/adafruit_vl6180x.py b/adafruit_vl6180x.py index baf9245..4983a41 100644 --- a/adafruit_vl6180x.py +++ b/adafruit_vl6180x.py @@ -172,12 +172,12 @@ def start_range_continuous(self, period: int = 100) -> None: :param int period: Time delay between measurements, in milliseconds; the value you will be floored to the nearest 10 milliseconds (setting to 157 ms sets it to 150 - ms). Range is 10 - 2550 ms. + ms). Range is 20 - 2550 ms. """ # Set range between measurements - if not 10 <= period <= 2550: + if not 20 <= period <= 2550: raise ValueError( - "Delay must be in 10 millisecond increments between 10 and 2550 milliseconds" + "Delay must be in 10 millisecond increments between 20 and 2550 milliseconds" ) period_reg = (period // 10) - 1