Real 0x52 is 0x29 in Arduino 7 bit

This commit is contained in:
Jason2866 2020-08-26 14:49:56 +02:00
parent 00dad36b08
commit 51491df141
3 changed files with 3 additions and 3 deletions

View File

@ -74,4 +74,4 @@ Index | Define | Driver | Device | Address(es) | Description
50 | USE_VEML7700 | xsns_71 | VEML7700 | 0x10 | Ambient light intensity sensor
51 | USE_MCP9808 | xsns_72 | MCP9808 | 0x18 - 0x1F | Temperature sensor
52 | USE_HP303B | xsns_73 | HP303B | 0x76 - 0x77 | Pressure and temperature sensor
53 | USE_VL53L1X | xsns_77 | VL53L1X | 0x52 | Time-of-flight (ToF) distance sensor
53 | USE_VL53L1X | xsns_77 | VL53L1X | 0x29 | Time-of-flight (ToF) distance sensor

View File

@ -531,7 +531,7 @@
// #define USE_SPS30 // [I2cDriver30] Enable Sensiron SPS30 particle sensor (I2C address 0x69) (+1.7 code)
#define USE_ADE7953 // [I2cDriver7] Enable ADE7953 Energy monitor as used on Shelly 2.5 (I2C address 0x38) (+1k5)
// #define USE_VL53L0X // [I2cDriver31] Enable VL53L0x time of flight sensor (I2C address 0x29) (+4k code)
// #define USE_VL53L1X // [I2cDriver53] Enable support for VL53L1X sensor (I2C addres 0x52) using Pololu VL53L1X library (+2k9 code)
// #define USE_VL53L1X // [I2cDriver53] Enable support for VL53L1X sensor (I2C address 0x29) using Pololu VL53L1X library (+2k9 code)
// #define USE_MLX90614 // [I2cDriver32] Enable MLX90614 ir temp sensor (I2C address 0x5a) (+0.6k code)
// #define USE_CHIRP // [I2cDriver33] Enable CHIRP soil moisture sensor (variable I2C address, default 0x20)
// #define USE_PAJ7620 // [I2cDriver34] Enable PAJ7620 gesture sensor (I2C address 0x73) (+2.5k code)

View File

@ -39,7 +39,7 @@ uint16_t vl53l1x_distance = 0;
/********************************************************************************************/
void Vl53l1Detect(void) {
if (!I2cSetDevice(0x52)) { return; }
if (!I2cSetDevice(0x29)) { return; }
if (!sensor.init()) { return; }