From 70a963ae6d8a8db806106096c755acd5f4cb4633 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Tue, 26 Apr 2022 15:58:10 +0200 Subject: [PATCH 1/2] fix for issue #858 --- src/i2c.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i2c.cpp b/src/i2c.cpp index 0080dd5d..cc13910f 100644 --- a/src/i2c.cpp +++ b/src/i2c.cpp @@ -49,7 +49,7 @@ void i2c_scan(void) { ESP_LOGI(TAG, "Starting I2C bus scan..."); memset(&bbi2c, 0, sizeof(bbi2c)); - bbi2c.bWire = 0; + bbi2c.bWire = 1; bbi2c.iSDA = MY_DISPLAY_SDA; bbi2c.iSCL = MY_DISPLAY_SCL; I2CInit(&bbi2c, 100000L); // Scan at 100KHz low speed From f87d0d05bd6eb51f6057e684a2f80aeeddddf91e Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Tue, 26 Apr 2022 16:00:25 +0200 Subject: [PATCH 2/2] update arduino-esp32 v2.0.1 --- platformio_orig.ini | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/platformio_orig.ini b/platformio_orig.ini index c9dc8755..c178772f 100644 --- a/platformio_orig.ini +++ b/platformio_orig.ini @@ -54,7 +54,7 @@ extra_scripts = pre:build.py otakeyfile = ota.conf lorakeyfile = loraconf.h lmicconfigfile = lmic_config.h -platform_espressif32 = espressif32@3.5.0 +platform_espressif32 = espressif32@4.1.0 monitor_speed = 115200 upload_speed = 115200 ; set by build.py and taken from hal file display_library = ; set by build.py and taken from hal file @@ -77,7 +77,7 @@ lib_deps_sensors = boschsensortec/BSEC Software Library @ 1.6.1480 https://github.com/cyberman54/sds-dust-sensors-arduino-library.git lib_deps_basic = - https://github.com/dbSuS/libpax.git @ ^1.0.0 + https://github.com/dbSuS/libpax.git https://github.com/SukkoPera/Arduino-Rokkit-Hash.git bblanchon/ArduinoJson @ ^6 makuna/RTC @ ^2.3.5 @@ -122,13 +122,9 @@ monitor_filters = time, esp32_exception_decoder, default [env:ota] upload_protocol = custom -platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream -platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#c2e5957 [env:usb] upload_protocol = esptool -platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream -platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#c2e5957 [env:dev] upload_protocol = esptool