Add ADS1115 ADC to recognition as used on RAK6421 Hat (#9790)
This commit is contained in:
@@ -92,7 +92,8 @@ class ScanI2C
|
|||||||
SEN5X,
|
SEN5X,
|
||||||
SFA30,
|
SFA30,
|
||||||
CW2015,
|
CW2015,
|
||||||
SCD30
|
SCD30,
|
||||||
|
ADS1115
|
||||||
} DeviceType;
|
} DeviceType;
|
||||||
|
|
||||||
// typedef uint8_t DeviceAddress;
|
// typedef uint8_t DeviceAddress;
|
||||||
|
|||||||
@@ -718,11 +718,18 @@ void ScanI2CTwoWire::scanPort(I2CPort port, uint8_t *address, uint8_t asize)
|
|||||||
if (len == 5 && memcmp(expectedInfo, info, len) == 0) {
|
if (len == 5 && memcmp(expectedInfo, info, len) == 0) {
|
||||||
LOG_INFO("NXP SE050 crypto chip found");
|
LOG_INFO("NXP SE050 crypto chip found");
|
||||||
type = NXP_SE050;
|
type = NXP_SE050;
|
||||||
|
break;
|
||||||
} else {
|
|
||||||
LOG_INFO("FT6336U touchscreen found");
|
|
||||||
type = FT6336U;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user