m5stack / M5Stack

M5Stack Arduino Library
MIT License
1.19k stars 425 forks source link

Compatibility between M5Stack and M5Core2 sketches #309

Closed reflectingme closed 1 year ago

reflectingme commented 1 year ago

Maybe I have this wrong, but I would have thought that there would be compatibility between sketches in the M5Stack examples and the M5Core2 device... sadly, alas not.

I have tried the examples/TFT_Clock sketch and the code compiles and uploads just fine on my M5Core2 device, but then the device just hangs.

Are there any straightforward settings/configs that I would need to adjust or libraries I'd need to add in order to allow this code to work with the m5core2, or is a total re-write of the code required due to 100% non compatibility?

IcingTomato commented 1 year ago

We recommand you to using M5Unified. https://github.com/m5stack/M5Unified

Tinyu-Zhao commented 1 year ago

Many of the pins between Core2 and M5Stack devices are different, and M5Stack has several hosts, so we recommend that you use M5Unified for inter-device compatibility.