<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Can&#x27;t get Sound to work on M5Stack Core2]]></title><description><![CDATA[<p dir="auto">I have found and tried about 8 different Arduino code examples to get sound (tone) out of the M5Core2 speaker but <strong>nothing</strong> works and I'm wondering if someone can help me.</p>
<p dir="auto">I found an example that uses M5Unified.h that works (speaker tone output), but the M5Core2.h is NOT compatible with the M5Unified.h.</p>
<p dir="auto">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.<br />
<a href="https://github.com/Hagtronics/M5Stack-Core2/tree/main/Sound/Lib/Core2_Sounds" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/Hagtronics/M5Stack-Core2/tree/main/Sound/Lib/Core2_Sounds</a></p>
<p dir="auto">There is the "Example":<br />
<a href="https://github.com/m5stack/M5-ProductExampleCodes/blob/master/Core/M5Core2/Arduino/speak/speak.ino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5-ProductExampleCodes/blob/master/Core/M5Core2/Arduino/speak/speak.ino</a><br />
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.</p>
<p dir="auto">I'm at my wits end...<br />
Does anyone have an example that <strong>works</strong> with the M5Core2.h and perhaps another library?</p>
<p dir="auto">Sir Michael</p>
]]></description><link>https://community.m5stack.com/topic/7246/can-t-get-sound-to-work-on-m5stack-core2</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 18:40:26 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7246.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Jan 2025 23:42:56 GMT</pubDate><ttl>60</ttl></channel></rss>