sharandac / My-TTGO-Watch

A GUI named hedge for smartwatch like devices based on ESP32. Currently support for T-Watch2020 (V1,V2,V3), T-Watch2021, M5Paper, M5Core2 and native Linux support for testing.
GNU General Public License v2.0
524 stars 246 forks source link

supporting new (V2) arduino-esp32 on platformio #335

Closed curtpw closed 9 months ago

curtpw commented 2 years ago

latest arduino-esp32 update solves a crucial (for me) I2C issue: https://github.com/espressif/arduino-esp32/pull/5683 Implement Thread-Safe I2C based on ESP-IDF API #5683

This project currently uses a custom and fairly old version of arduino-esp32 (https://github.com/sharandac/arduino-esp32-hedge.git). I've been messing around with various platformio.ini configurations. Platform.io burns up when I switch to framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git, specifically BLE dependencies. Espressif did some pretty major BLE updates for the new version.

Is there a simple way to use a different and updated arduino-esp32?

pulling newer arduino-esp32 versions on platform.io https://techoverflow.net/2021/12/17/how-to-use-specific-arduino-esp32-version-in-platformio/

Jason2866 commented 2 years ago

@curtpw Sadly PlatformIO still has not released a version based on Arduino core 2.0.x Since the core 2.0.x has many bug fixes and supports C3 and S2 i have done a setup. you can simply use with

 platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.2.3/platform-espressif32-2.0.2.3.zip

This core is based on code from 24 February 2022