Add TSL2591 sensor support (#4014)

This commit is contained in:
Ben Meadors
2024-06-01 20:21:39 -05:00
committed by GitHub
parent 9a855c0b6f
commit 6ce2fdc1c8
8 changed files with 71 additions and 3 deletions

View File

@@ -45,7 +45,8 @@ class ScanI2C
VEML7700,
RCWL9620,
NCP5623,
AHT10
TSL2591,
AHT10,
} DeviceType;
// typedef uint8_t DeviceAddress;

View File

@@ -342,6 +342,7 @@ void ScanI2CTwoWire::scanPort(I2CPort port)
SCAN_SIMPLE_CASE(LSM6DS3_ADDR, LSM6DS3, "LSM6DS3 accelerometer found at address 0x%x\n", (uint8_t)addr.address);
SCAN_SIMPLE_CASE(TCA9555_ADDR, TCA9555, "TCA9555 I2C expander found\n");
SCAN_SIMPLE_CASE(VEML7700_ADDR, VEML7700, "VEML7700 light sensor found\n");
SCAN_SIMPLE_CASE(TSL25911_ADDR, TSL2591, "TSL2591 light sensor found\n");
default:
LOG_INFO("Device found at address 0x%x was not able to be enumerated\n", addr.address);