Can't get Sound to work on M5Stack Core2
-
I have found and tried about 8 different Arduino code examples to get sound (tone) out of the M5Core2 speaker but nothing works and I'm wondering if someone can help me.
I found an example that uses M5Unified.h that works (speaker tone output), but the M5Core2.h is NOT compatible with the M5Unified.h.
I found another "Core2_Sounds.h" that shows promise in that it compiles and downloads, but I get a continuous crash dump to the Serial Monitor.
https://github.com/Hagtronics/M5Stack-Core2/tree/main/Sound/Lib/Core2_SoundsThere is the "Example":
https://github.com/m5stack/M5-ProductExampleCodes/blob/master/Core/M5Core2/Arduino/speak/speak.ino
but I keep getting an error saying that the "driver/i2s.h" is deprecated and won't compile, even with the replacements that are suggested.I'm at my wits end...
Does anyone have an example that works with the M5Core2.h and perhaps another library?Sir Michael