m5stack / M5StickC-Plus

M5StickCPlus Arduino Library
MIT License
372 stars 89 forks source link

Fixed Arduino Compile Errors #61

Closed LaikaSpaceDawg closed 2 months ago

LaikaSpaceDawg commented 3 months 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.

LaikaSpaceDawg commented 2 months 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 2 months ago

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