<?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[Problem speaker with M5stickC Plus]]></title><description><![CDATA[<p dir="auto">I am using M5stickc plus at the moment I am very happy with them, but I have had a problem and I cannot find a solution.<br />
I am unable to make a beep sound and I am not listening because, I am attaching the code to see if they can help me.</p>
<p dir="auto"><strong>ERRROArduino:1.8.13 (Windows 10), Tarjeta:"M5Stick-C, Default, 1500000, None"<br />
C:\DISEÑOS\Arduino\sketch_nov25b\sketch_nov25b.ino: In function 'void loop()':<br />
sketch_nov25b:51:8: error: 'class M5StickCPlus' has no member named 'Speaker'<br />
exit status 1<br />
'class M5StickCPlus' has no member named 'Speaker'</strong></p>
<p dir="auto">Thanks in advance.</p>
<p dir="auto">#include &lt;M5StickCPlus.h&gt;<br />
#define INTERVALO_LED 200<br />
#define INTERVALO_LECTURAS 1000</p>
<p dir="auto">uint8_t i = 12;// entre 7 y 12<br />
unsigned long tiempo;<br />
const int Led = 10;<br />
unsigned long Tiempo_Led_Encendido = 0;<br />
unsigned long Tiempo_entre_Lecturas = 0;</p>
<p dir="auto">void setup() {</p>
<p dir="auto">Serial.begin(115200);<br />
// put your setup code here, to run once:<br />
M5.begin();</p>
<p dir="auto">pinMode (Led, OUTPUT);</p>
<p dir="auto">digitalWrite (Led, HIGH);</p>
<p dir="auto">M5.Lcd.setRotation(1);                              //Rotar LCD<br />
M5.Lcd.fillScreen(BLACK);                           //Vaciar pantalla y color<br />
M5.Lcd.setTextColor(WHITE);                         //Color Texto<br />
M5.Lcd.setTextSize(2);                              //Tamaño Texto<br />
M5.Axp.ScreenBreath(i);<br />
}</p>
<p dir="auto">void loop() {</p>
<p dir="auto">M5.update(); // need to call update()<br />
if (millis () &gt; (Tiempo_entre_Lecturas + INTERVALO_LECTURAS))<br />
{<br />
M5.Lcd.fillScreen(BLACK);                           //Vaciar pantalla y color<br />
M5.Lcd.setCursor(0, 0);<br />
M5.Lcd.printf("V_Bateria: %.2fV\r\n", M5.Axp.GetBatVoltage());<br />
M5.Lcd.printf("I_Bateria: %.1fmA\r\n", M5.Axp.GetBatCurrent());<br />
M5.Lcd.printf("V_USB: %.3fV\r\n", M5.Axp.GetVBusVoltage());<br />
M5.Lcd.printf("I_USB: %.3fmA\r\n", M5.Axp.GetVBusCurrent());<br />
M5.Lcd.printf("Vin: %.3fV\r\n", M5.Axp.GetVinVoltage());<br />
M5.Lcd.printf("Iin: %.3fmA\r\n", M5.Axp.GetVinCurrent());<br />
M5.Lcd.printf("Bat power: %.3fmw\r\n", M5.Axp.GetBatPower());<br />
M5.Lcd.printf("Nivel: %u\r\n",  M5.Axp.GetWarningLeve());<br />
Tiempo_entre_Lecturas = millis();<br />
}<br />
if(M5.BtnA.wasPressed())<br />
{<br />
digitalWrite (Led, LOW);<br />
Serial.println("Pulsado A");<br />
M5.Axp.ScreenBreath(i++);<br />
<strong>M5.Speaker.beep();//////////</strong>*****<strong>///////</strong><br />
if (i &gt; 12) i = 7;<br />
Tiempo_Led_Encendido =  millis();<br />
}<br />
if (!digitalRead(Led) &amp; (millis () &gt; (Tiempo_Led_Encendido + INTERVALO_LED)))<br />
{<br />
digitalWrite (Led, HIGH);<br />
//    M5.Speaker.setBeep(900, 1000);<br />
}<br />
}</p>
]]></description><link>https://community.m5stack.com/topic/2513/problem-speaker-with-m5stickc-plus</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 10:04:04 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2513.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Nov 2020 13:06:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem speaker with M5stickC Plus on Thu, 26 Nov 2020 16:30:52 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/vgamlc" aria-label="Profile: vgamlc">@<bdi>vgamlc</bdi></a></p>
<p dir="auto">I don't think you can change the volume of the beep. Although there is a <code>setVolume()</code> function the volume is only used in the <code>PlayMusic()</code> function, but not for the beep.</p>
<p dir="auto">Please also refer to the <a href="https://github.com/m5stack/M5StickC-Plus/blob/master/src/utility/Speaker.cpp" target="_blank" rel="noopener noreferrer nofollow ugc">Speaker source code</a></p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/10881</link><guid isPermaLink="true">https://community.m5stack.com/post/10881</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 26 Nov 2020 16:30:52 GMT</pubDate></item><item><title><![CDATA[Reply to Problem speaker with M5stickC Plus on Thu, 26 Nov 2020 15:22:21 GMT]]></title><description><![CDATA[<p dir="auto">Another issue, I cannot change the volume on my M5stack Plus. Some help?</p>
]]></description><link>https://community.m5stack.com/post/10880</link><guid isPermaLink="true">https://community.m5stack.com/post/10880</guid><dc:creator><![CDATA[vgamlc]]></dc:creator><pubDate>Thu, 26 Nov 2020 15:22:21 GMT</pubDate></item><item><title><![CDATA[Reply to Problem speaker with M5stickC Plus on Thu, 26 Nov 2020 13:32:45 GMT]]></title><description><![CDATA[<p dir="auto"><strong>Thanks, you are a machine and fast.</strong></p>
]]></description><link>https://community.m5stack.com/post/10878</link><guid isPermaLink="true">https://community.m5stack.com/post/10878</guid><dc:creator><![CDATA[vgamlc]]></dc:creator><pubDate>Thu, 26 Nov 2020 13:32:45 GMT</pubDate></item><item><title><![CDATA[Reply to Problem speaker with M5stickC Plus on Thu, 26 Nov 2020 13:23:40 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/vgamlc" aria-label="Profile: vgamlc">@<bdi>vgamlc</bdi></a></p>
<p dir="auto">I think the correct function to call is: <code>M5.Beep.beep();</code>.</p>
<p dir="auto">Cheers<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/10877</link><guid isPermaLink="true">https://community.m5stack.com/post/10877</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 26 Nov 2020 13:23:40 GMT</pubDate></item></channel></rss>