kopia lustrzana https://github.com/meshtastic/firmware
tidy up first
rodzic
78d915b454
commit
a149999cec
|
@ -41,8 +41,9 @@ class ScanI2C
|
|||
BQ24295,
|
||||
LSM6DS3,
|
||||
TCA9555,
|
||||
RGBLED_CA,
|
||||
#ifdef HAS_NCP5623
|
||||
NCP5623,
|
||||
#endif
|
||||
} DeviceType;
|
||||
|
||||
// typedef uint8_t DeviceAddress;
|
||||
|
|
|
@ -494,15 +494,11 @@ void setup()
|
|||
* "found".
|
||||
*/
|
||||
|
||||
// Only one supported I2C RGB LED currently (plus common anode RGB LED used by the unPhone)
|
||||
// Only one supported RGB LED currently
|
||||
#ifdef HAS_NCP5623
|
||||
rgb_found = i2cScanner->find(ScanI2C::DeviceType::NCP5623);
|
||||
#endif
|
||||
|
||||
#ifdef UNPHONE
|
||||
rgb_found.type = ScanI2C::DeviceType::RGBLED_CA;
|
||||
#endif
|
||||
|
||||
#if !defined(ARCH_PORTDUINO) && !defined(ARCH_STM32WL)
|
||||
auto acc_info = i2cScanner->firstAccelerometer();
|
||||
accelerometer_found = acc_info.type != ScanI2C::DeviceType::NONE ? acc_info.address : accelerometer_found;
|
||||
|
|
Ładowanie…
Reference in New Issue