Skip to content

Commit 6b73aef

Browse files
committed
Lock ESP32-S2 targets to Arduino v2.0.6
Arduino versions past v2.0.6 are based on ESP-IDF v4.4.4 which introduces a bug in the IIC implementation causing delays in every write to IIC LCDs. Reverting to v2.0.6 eliminates this bug.
1 parent f4bdca9 commit 6b73aef

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

platformio.ini

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@ monitor_filters = esp8266_exception_decoder, default
210210
platform = espressif32
211211
board = lolin_s2_mini
212212
framework = ${common.framework}
213+
; v4.4.4 of esp-idf introduces a bug in the IIC implementation that causes MASSIVE delays
214+
; in the IIC bus on the S2 (meaning that writes to the LCD grind the controller to a halt).
215+
; This is a workaround until the bug is fixed.
216+
platform_packages =
217+
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.6
213218
; For esp32_s2_wifi we want to enable LCD support, IIC support, and WiFi support
214219
; There is no Bluetooth support on this chip.
215220
build_flags =
@@ -238,6 +243,11 @@ monitor_filters =
238243
platform = espressif32
239244
board = lolin_s2_mini
240245
framework = ${common.framework}
246+
; v4.4.4 of esp-idf introduces a bug in the IIC implementation that causes MASSIVE delays
247+
; in the IIC bus on the S2 (meaning that writes to the LCD grind the controller to a halt).
248+
; This is a workaround until the bug is fixed.
249+
platform_packages =
250+
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.6
241251
; For esp32_s2_serial we want to enable LCD support, IIC support, and Serial support
242252
; There is no Bluetooth support on this chip.
243253
build_flags =

0 commit comments

Comments
 (0)