Add ADS1115 ADC to recognition as used on RAK6421 Hat (#9790)

This commit is contained in:
Thomas Göttgens
2026-03-03 08:55:53 +01:00
committed by GitHub
co-authored by GitHub
parent 8093e2ed5a
commit 5f852a1c05
2 changed files with 13 additions and 5 deletions
+2 -1
View File
@@ -92,7 +92,8 @@ class ScanI2C
SEN5X,
SFA30,
CW2015,
SCD30
SCD30,
ADS1115
} DeviceType;
// typedef uint8_t DeviceAddress;
+11 -4
View File
@@ -718,11 +718,18 @@ void ScanI2CTwoWire::scanPort(I2CPort port, uint8_t *address, uint8_t asize)
if (len == 5 && memcmp(expectedInfo, info, len) == 0) {
LOG_INFO("NXP SE050 crypto chip found");
type = NXP_SE050;
} else {
LOG_INFO("FT6336U touchscreen found");
type = FT6336U;
break;
}
registerValue = getRegisterValue(ScanI2CTwoWire::RegisterLocation(addr, 0x01), 2);
if (registerValue == 0x8583 || registerValue == 0x8580) {
type = ADS1115;
logFoundDevice("ADS1115 ADC", (uint8_t)addr.address);
break;
}
LOG_INFO("FT6336U touchscreen found");
type = FT6336U;
break;
}