Fix issue with External I2C power on M5Stack Core S3. (#246)

It's just https://github.com/espressif/esp-bsp/commit/214ce6f191fae75ae4b3872b295eebb58b9fd0a0 adapted to Tactility source code.
All credits to original author of fix.

Signed-off-by: Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
This commit is contained in:
PabloPL
2025-03-13 21:33:31 +01:00
committed by GitHub
parent 19521791c5
commit 21936f7e9e
3 changed files with 17 additions and 0 deletions
+6
View File
@@ -57,6 +57,12 @@ bool initGpioExpander() {
// Boost enable
p1_state |= (1U << 7U);
/* AW9523 P0 is in push-pull mode */
if (!aw9523->writeCTL(0x10)) {
TT_LOG_E(TAG, "AW9523: Failed to set CTL");
return false;
}
if (!aw9523->writeP0(p0_state)) {
TT_LOG_E(TAG, "AW9523: Failed to set P0");
return false;