<?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 compiling with Include M5Stack.h]]></title><description><![CDATA[<p dir="auto">If I try and compile in Arduino IDE and sketch that has the #include M5Stack.h, even on Example code in the "examples from Custom Library - M5Stack - Basic - Hello World, I get an compiling error.</p>
<p dir="auto">Here is the error I get for Hello World with display to the TFT:<br />
C:\Users\█████\Documents\Arduino\libraries\M5Stack\src\M5Stack.cpp: In member function 'void M5Stack::powerOFF()':</p>
<p dir="auto">C:\Users\█████\Documents\Arduino\libraries\M5Stack\src\M5Stack.cpp:65:62: error: 'esp_sleep_enable_ext0_wakeup' was not declared in this scope</p>
<pre><code> esp_sleep_enable_ext0_wakeup((gpio_num_t)_wakeupPin , LOW);
</code></pre>
<p dir="auto">Now I I have updated the library with GIT.</p>
<p dir="auto">Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Board: "M5Stack-Core-ESP32</p>
<p dir="auto">I can compile and run others like ResetReason.</p>
<p dir="auto">So guidance would be helpful to resolve this</p>
]]></description><link>https://community.m5stack.com/topic/233/problem-compiling-with-include-m5stack-h</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 14:13:13 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/233.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 17 Jun 2018 13:31:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem compiling with Include M5Stack.h on Wed, 28 Aug 2019 23:37:09 GMT]]></title><description><![CDATA[<p dir="auto">same problem!!!</p>
<p dir="auto">solved on commenting out</p>
<p dir="auto">gpio_deep_sleep_hold_dis();</p>
<p dir="auto">in</p>
<p dir="auto">Documents/Arduino/libraries/M5Stack/src/utility/Power.cpp</p>
<p dir="auto">I don't know why, but now arduino compile</p>
]]></description><link>https://community.m5stack.com/post/5358</link><guid isPermaLink="true">https://community.m5stack.com/post/5358</guid><dc:creator><![CDATA[cepics]]></dc:creator><pubDate>Wed, 28 Aug 2019 23:37:09 GMT</pubDate></item><item><title><![CDATA[Reply to Problem compiling with Include M5Stack.h on Wed, 20 Jun 2018 18:11:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/zathras0" aria-label="Profile: Zathras0">@<bdi>Zathras0</bdi></a>,<br />
That seems a weird error to get from running M5Stack's simple Hello sketch which does not include a poweroff function. (?).<br />
Also I don't know the "ResetReason" sketch that you referred to. Where did you find this ?</p>
<p dir="auto">(1)OK it seems you have the M5Stack library installed in the correct place.</p>
<p dir="auto">(2) Is the Espressif ESP32 library installed ? Check:  C:\Users\█████\Documents\Arduino\Hardware\espressif\esp32\libraries . If you don't have files there go to M5Stack setup guide and install them.</p>
<p dir="auto">(3) As PépéMax suggested, in the Arduino IDE, check that the M5Stack is selected  as the board that you are using with the IDE. On the Arduino menu go to /Tools/Board . The M5Stack should be set here as the board you are using.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/p%C3%A9p%C3%A9max" aria-label="Profile: PépéMax">@<bdi>PépéMax</bdi></a></p>
<blockquote>
<p dir="auto">'...some function of the ESP32 does not work yet for the M5Stack library like analogWrite()</p>
</blockquote>
<p dir="auto">Just to clarify, as I understand it, the issue is that not all functions available on Arduino or ESP8266 boards are available at present on ESP32 boards in general -  eg:  analogWrite();. That is, the problem is not specific to M5Stack boards - it effects all ESP32 boards. Referenced <a href="https://github.com/espressif/arduino-esp32/issues/4" target="_blank" rel="noopener noreferrer nofollow ugc">here</a></p>
]]></description><link>https://community.m5stack.com/post/1119</link><guid isPermaLink="true">https://community.m5stack.com/post/1119</guid><dc:creator><![CDATA[JJ]]></dc:creator><pubDate>Wed, 20 Jun 2018 18:11:28 GMT</pubDate></item><item><title><![CDATA[Reply to Problem compiling with Include M5Stack.h on Wed, 20 Jun 2018 04:57:28 GMT]]></title><description><![CDATA[<p dir="auto">please see my post here:<br />
<a href="http://forum.m5stack.com/topic/237/compilation-errors-in-arduino-1-6-5" target="_blank" rel="noopener noreferrer nofollow ugc">http://forum.m5stack.com/topic/237/compilation-errors-in-arduino-1-6-5</a></p>
<p dir="auto">Try this and let me know as I have just been fighting with the GUI.</p>
]]></description><link>https://community.m5stack.com/post/1111</link><guid isPermaLink="true">https://community.m5stack.com/post/1111</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Wed, 20 Jun 2018 04:57:28 GMT</pubDate></item><item><title><![CDATA[Reply to Problem compiling with Include M5Stack.h on Tue, 19 Jun 2018 13:37:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zathras0" aria-label="Profile: Zathras0">@<bdi>Zathras0</bdi></a><br />
I know that the MStack is an ESP32 but you should know that some function of the ESP32 does not work yet for the M5Stack library like analogWrite(), I saw this morning on a forum if I find the link I give it to you.<br />
And I think it's your function that is not handled by the M5Stack librairy</p>
]]></description><link>https://community.m5stack.com/post/1109</link><guid isPermaLink="true">https://community.m5stack.com/post/1109</guid><dc:creator><![CDATA[PépéMax]]></dc:creator><pubDate>Tue, 19 Jun 2018 13:37:11 GMT</pubDate></item><item><title><![CDATA[Reply to Problem compiling with Include M5Stack.h on Tue, 19 Jun 2018 10:06:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/p%C3%A9p%C3%A9max" aria-label="Profile: pépémax">@<bdi>pépémax</bdi></a><br />
I will give PlatformIO a go. Might give me more direction of where the issue is. Trying via VScode, supposed to be easier for casual programer like myself</p>
<p dir="auto">In response to what you said, the M5Stack at its core is a ESP32.</p>
<p dir="auto">The statement it complains about is in the M5Stack.h itself for the power off function.</p>
]]></description><link>https://community.m5stack.com/post/1106</link><guid isPermaLink="true">https://community.m5stack.com/post/1106</guid><dc:creator><![CDATA[Zathras0]]></dc:creator><pubDate>Tue, 19 Jun 2018 10:06:36 GMT</pubDate></item><item><title><![CDATA[Reply to Problem compiling with Include M5Stack.h on Mon, 18 Jun 2018 07:55:00 GMT]]></title><description><![CDATA[<p dir="auto">hi, Zathras0<br />
Why you use Arduino IDE,  work rather with PlatformIO it's easier to use.<br />
And I think that your function was not declared above in your code or from what I saw this function and made for an ESP.</p>
<p dir="auto">Did you know that select M5Stack in your board from the menu &lt;tool&gt;</p>
<p dir="auto">and I start in C++ so I tell you about my problems that I met</p>
]]></description><link>https://community.m5stack.com/post/1098</link><guid isPermaLink="true">https://community.m5stack.com/post/1098</guid><dc:creator><![CDATA[PépéMax]]></dc:creator><pubDate>Mon, 18 Jun 2018 07:55:00 GMT</pubDate></item></channel></rss>