🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Can't get Sound to work on M5Stack Core2

    Arduino
    1
    1
    306
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      SirMichael
      last edited by SirMichael

      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_Sounds

      There 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

      1 Reply Last reply Reply Quote 0
      • First post
        Last post