Add support for VL53L1X time of flight sensor

Add support for VL53L1X time of flight sensor by Johann Obermeier
This commit is contained in:
Theo Arends 2020-09-29 11:27:53 +02:00
parent da407e2cc9
commit 5cf40fc059
5 changed files with 8 additions and 6 deletions

View File

@ -74,3 +74,4 @@ The attached binaries can also be downloaded from http://ota.tasmota.com/tasmota
- Add new shutter modes (#9244) - Add new shutter modes (#9244)
- Add Zigbee auto-config when pairing - Add Zigbee auto-config when pairing
- Add support for MLX90640 IR array temperature sensor by Christian Baars - Add support for MLX90640 IR array temperature sensor by Christian Baars
- Add support for VL53L1X time of flight sensor by Johann Obermeier

View File

@ -21,6 +21,7 @@
- Add new shutter modes (#9244) - Add new shutter modes (#9244)
- Add Zigbee auto-config when pairing - Add Zigbee auto-config when pairing
- Add support for MLX90640 IR array temperature sensor by Christian Baars - Add support for MLX90640 IR array temperature sensor by Christian Baars
- Add support for VL53L1X time of flight sensor by Johann Obermeier
### 8.5.0 20200907 ### 8.5.0 20200907

View File

@ -542,7 +542,7 @@
// #define USE_SPS30 // [I2cDriver30] Enable Sensiron SPS30 particle sensor (I2C address 0x69) (+1.7 code) // #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_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_VL53L0X // [I2cDriver31] Enable VL53L0x time of flight sensor (I2C address 0x29) (+4k code)
// #define USE_VL53L1X // [I2cDriver53] Enable support for VL53L1X sensor (I2C address 0x29) using Pololu VL53L1X library (+2k9 code) // #define USE_VL53L1X // [I2cDriver54] 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_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_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) // #define USE_PAJ7620 // [I2cDriver34] Enable PAJ7620 gesture sensor (I2C address 0x73) (+2.5k code)

View File

@ -1,7 +1,7 @@
/* /*
xsns_77_vl53l1x.ino - VL53L1X xsns_77_vl53l1x.ino - VL53L1X sensor support for Tasmota
Copyright (C) 2018 Theo Arends, Rui Marinho and Johann Obermeier Copyright (C) 2020 Theo Arends, Rui Marinho and Johann Obermeier
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -74,7 +74,7 @@ void Vl53l1Every_Second(void) {
} }
#endif // USE_DOMOTICZ #endif // USE_DOMOTICZ
void Vl53l1Show(boolean json) { void Vl53l1Show(bool json) {
if (json) { if (json) {
#ifdef USE_DOMOTICZ #ifdef USE_DOMOTICZ
if (0 == tele_period) { if (0 == tele_period) {
@ -93,7 +93,7 @@ void Vl53l1Show(boolean json) {
* Interface * Interface
\*********************************************************************************************/ \*********************************************************************************************/
bool Xsns77(byte function) bool Xsns77(uint8_t function)
{ {
if (!I2cEnabled(XI2C_54)) { return false; } if (!I2cEnabled(XI2C_54)) { return false; }
bool result = false; bool result = false;

View File

@ -229,7 +229,7 @@ a_features = [[
"USE_VEML7700","USE_MCP9808","USE_BL0940","USE_TELEGRAM", "USE_VEML7700","USE_MCP9808","USE_BL0940","USE_TELEGRAM",
"USE_HP303B","USE_TCP_BRIDGE","USE_TELEINFO","USE_LMT01", "USE_HP303B","USE_TCP_BRIDGE","USE_TELEINFO","USE_LMT01",
"USE_PROMETHEUS","USE_IEM3000","USE_DYP","USE_I2S_AUDIO", "USE_PROMETHEUS","USE_IEM3000","USE_DYP","USE_I2S_AUDIO",
"USE_MLX90640","","","", "USE_MLX90640","USE_VL53L1X","","",
"","USE_TTGO_WATCH","USE_ETHERNET","USE_WEBCAM" "","USE_TTGO_WATCH","USE_ETHERNET","USE_WEBCAM"
],[ ],[
"","","","", "","","","",