Resolve I2C pin conflict on Waveshare RLCD board, use SoftI2C for dynamic configurations, and add RTC/SHTC3 utilities to upload list

This commit is contained in:
Adolfo Reyna
2026-06-17 22:51:25 -04:00
parent 82de0f328b
commit 7d61824723
4 changed files with 22 additions and 14 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ class SHTC3:
def __init__(self, i2c=None):
if i2c is None:
# Default to ESP32-S3-RLCD-4.2 onboard I2C pins
self.i2c = I2C(0, sda=Pin(13), scl=Pin(14))
from machine import SoftI2C
self.i2c = SoftI2C(sda=Pin(13), scl=Pin(14))
else:
self.i2c = i2c