mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-27 09:59:01 +00:00
vl53l1x: Add functions for setting the device address
Implement functions to get and set the device address similar to its reference implementation in C: https://github.com/pololu/vl53l1x-arduino/blob/master/VL53L1X.cpp#L28 Signed-off-by: Michael Meister <michael.meister@bytesatwork.ch>
This commit is contained in:
committed by
Ron Evans
parent
19caee9b76
commit
e4951091f4
@@ -7,6 +7,7 @@ const Address = 0x29 //0x52
|
||||
const (
|
||||
CHIP_ID = 0xEACC
|
||||
SOFT_RESET = 0x0000
|
||||
I2C_SLAVE_DEVICE_ADDRESS = 0x0001
|
||||
OSC_MEASURED_FAST_OSC_FREQUENCY = 0x0006
|
||||
VHV_CONFIG_TIMEOUT_MACROP_LOOP_BOUND = 0x0008
|
||||
VHV_CONFIG_INIT = 0x000B
|
||||
|
||||
Reference in New Issue
Block a user