vl53l1x: Add functions for setting 'region of interest'

Implement functions to get and set 'region of interest' similar to its
reference implementation in C:
https://github.com/pololu/vl53l1x-arduino/commit/a6de3966784aa07680bb35a1f9ac369959efe19f

Signed-off-by: Oliver Stäbler <oliver.staebler@bytesatwork.ch>
This commit is contained in:
Oliver Stäbler
2022-04-19 11:46:38 +02:00
committed by Ron Evans
parent ec98f2dc2c
commit 448598cbf8
2 changed files with 35 additions and 0 deletions
+2
View File
@@ -46,6 +46,8 @@ const (
SD_CONFIG_INITIAL_PHASE_SD1 = 0x007B
SYSTEM_GROUPED_PARAMETER_HOLD_1 = 0x007C
SD_CONFIG_QUANTIFIER = 0x007E
ROI_CONFIG_USER_ROI_CENTRE_SPAD = 0x007F
ROI_CONFIG_USER_ROI_REQUESTED_GLOBAL_XY_SIZE = 0x0080
SYSTEM_SEQUENCE_CONFIG = 0x0081
SYSTEM_GROUPED_PARAMETER_HOLD = 0x0082
SYSTEM_INTERRUPT_CLEAR = 0x0086