Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minimum 20ms continuous read mode #34

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions adafruit_vl6180x.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading