m5stack / M5StickC-Plus

M5StickCPlus Arduino Library
MIT License
359 stars 90 forks source link

Fixed Arduino Compile Errors #61

Closed xcs011 closed 3 weeks ago

xcs011 commented 4 weeks ago

Arduino compile errors were caused by updates to ESP_IDF and ESP32 Core.

Migrated Speaker.cpp to V3.0.0 standards following the migration guide here: https://github.com/espressif/arduino-esp32/blob/master/docs/en/migration_guides/2.x_to_3.0.rst#ledc

Fixed GPIO errors by including hal/gpio_ll.h in In_eSPI.h to return access to utilized GPIO struct.

xcs011 commented 3 weeks ago

Speaker.cpp updates may not be needed yet, V3.0.0 is not yet integrated in the official M5Stack toolchain, however it is in the newest ESP32 Core, which also includes the M5Stack for arduino, and is just as compatible a toolchain.

Tinyu-Zhao commented 3 weeks ago

Thank you for your help. We will take into account the old version while upgrading.