From 232e0412ff2b11e22a491e3261c6ed15033a78cf Mon Sep 17 00:00:00 2001 From: Manuel <71137295+mverch67@users.noreply.github.com> Date: Tue, 7 Oct 2025 14:19:45 +0200 Subject: [PATCH] cosmetic print when STC8H1K28 is found --- src/configuration.h | 3 +++ src/detect/ScanI2C.h | 1 + src/detect/ScanI2CTwoWire.cpp | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/configuration.h b/src/configuration.h index e67f0b8e5..8c6fe00b9 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -237,6 +237,9 @@ along with this program. If not, see . #define TCA9535_ADDR 0x20 #define TCA9555_ADDR 0x26 +// used for display brightness control +#define STC8H1K28_ADDR 0x30 + // ----------------------------------------------------------------------------- // Touchscreen // ----------------------------------------------------------------------------- diff --git a/src/detect/ScanI2C.h b/src/detect/ScanI2C.h index 2e602338c..852886bb3 100644 --- a/src/detect/ScanI2C.h +++ b/src/detect/ScanI2C.h @@ -61,6 +61,7 @@ class ScanI2C NAU7802, FT6336U, STK8BAXX, + STC8H1K28, ICM20948, SCD4X, MAX30102, diff --git a/src/detect/ScanI2CTwoWire.cpp b/src/detect/ScanI2CTwoWire.cpp index 6df3f8be1..e7013fd4d 100644 --- a/src/detect/ScanI2CTwoWire.cpp +++ b/src/detect/ScanI2CTwoWire.cpp @@ -233,6 +233,8 @@ void ScanI2CTwoWire::scanPort(I2CPort port, uint8_t *address, uint8_t asize) #endif #ifdef HAS_LP5562 SCAN_SIMPLE_CASE(LP5562_ADDR, LP5562, "LP5562", (uint8_t)addr.address); +#else + SCAN_SIMPLE_CASE(STC8H1K28_ADDR, LP5562, "STC8H1K28", (uint8_t)addr.address); #endif case XPOWERS_AXP192_AXP2101_ADDRESS: // Do we have the axp2101/192 or the TCA8418