diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 14e82b6f3..7e466cfe4 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -74,3 +74,4 @@ The attached binaries can also be downloaded from http://ota.tasmota.com/tasmota - Add new shutter modes (#9244) - Add Zigbee auto-config when pairing - Add support for MLX90640 IR array temperature sensor by Christian Baars +- Add support for VL53L1X time of flight sensor by Johann Obermeier diff --git a/tasmota/CHANGELOG.md b/tasmota/CHANGELOG.md index f555c1324..907dd36fc 100644 --- a/tasmota/CHANGELOG.md +++ b/tasmota/CHANGELOG.md @@ -21,6 +21,7 @@ - Add new shutter modes (#9244) - Add Zigbee auto-config when pairing - 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 diff --git a/tasmota/my_user_config.h b/tasmota/my_user_config.h index d17ad40c2..eed9062f0 100644 --- a/tasmota/my_user_config.h +++ b/tasmota/my_user_config.h @@ -542,7 +542,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 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_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) diff --git a/tasmota/xsns_77_vl53l1x.ino b/tasmota/xsns_77_vl53l1x.ino index 03c590fbd..c8e4bb64a 100644 --- a/tasmota/xsns_77_vl53l1x.ino +++ b/tasmota/xsns_77_vl53l1x.ino @@ -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 it under the terms of the GNU General Public License as published by @@ -74,7 +74,7 @@ void Vl53l1Every_Second(void) { } #endif // USE_DOMOTICZ -void Vl53l1Show(boolean json) { +void Vl53l1Show(bool json) { if (json) { #ifdef USE_DOMOTICZ if (0 == tele_period) { @@ -93,7 +93,7 @@ void Vl53l1Show(boolean json) { * Interface \*********************************************************************************************/ -bool Xsns77(byte function) +bool Xsns77(uint8_t function) { if (!I2cEnabled(XI2C_54)) { return false; } bool result = false; diff --git a/tools/decode-status.py b/tools/decode-status.py index 3a664b28c..f1c2c8302 100755 --- a/tools/decode-status.py +++ b/tools/decode-status.py @@ -229,7 +229,7 @@ a_features = [[ "USE_VEML7700","USE_MCP9808","USE_BL0940","USE_TELEGRAM", "USE_HP303B","USE_TCP_BRIDGE","USE_TELEINFO","USE_LMT01", "USE_PROMETHEUS","USE_IEM3000","USE_DYP","USE_I2S_AUDIO", - "USE_MLX90640","","","", + "USE_MLX90640","USE_VL53L1X","","", "","USE_TTGO_WATCH","USE_ETHERNET","USE_WEBCAM" ],[ "","","","",