Refactor I2C device scanning and update display pin assignments
- Changed I2C scanning function to probe only expected device addresses, improving startup reliability. - Updated logging to provide clearer output for found and missing devices. - Modified I2C SDA and SCL pin assignments from 6 and 7 to 8 and 9, respectively, to accommodate hardware changes. - Added a timeout for I2C communication to enhance robustness.
This commit is contained in:
@@ -16,11 +16,12 @@ lib_deps =
|
||||
board_upload.flash_size = 16MB
|
||||
board_build.partitions = default_16MB.csv
|
||||
board_build.arduino.memory_type = qio_opi
|
||||
board_build.extra_flags = -DBOARD_HAS_PSRAM
|
||||
|
||||
; board_build.filesystem = spiffs
|
||||
|
||||
build_flags =
|
||||
-D BOARD_HAS_PSRAM
|
||||
-D ARDUINO_USB_CDC_ON_BOOT=1
|
||||
-D PB_VERSION=\"1.0.0\"
|
||||
-D PB_HOSTNAME=\"faceplant\"
|
||||
-D PB_TZ=\"America/New_York\"
|
||||
|
||||
Reference in New Issue
Block a user