mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-31 14:37:49 +00:00
verify that tsl2561 works with new ads1115
This commit is contained in:
parent
de5023fb43
commit
86a56b7b71
@ -67,8 +67,8 @@ void Tsl2561Detect(void)
|
|||||||
uint8_t id;
|
uint8_t id;
|
||||||
|
|
||||||
if (I2cDevice(0x29) || I2cDevice(0x39) || I2cDevice(0x49)) {
|
if (I2cDevice(0x29) || I2cDevice(0x39) || I2cDevice(0x49)) {
|
||||||
if (!Tsl.id(id)) return;
|
|
||||||
Tsl.begin();
|
Tsl.begin();
|
||||||
|
if (!Tsl.id(id)) return;
|
||||||
if (Tsl.on()) {
|
if (Tsl.on()) {
|
||||||
tsl2561_type = 1;
|
tsl2561_type = 1;
|
||||||
snprintf_P(log_data, sizeof(log_data), S_LOG_I2C_FOUND_AT, tsl2561_types, Tsl.address(), id);
|
snprintf_P(log_data, sizeof(log_data), S_LOG_I2C_FOUND_AT, tsl2561_types, Tsl.address(), id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user