<?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[Core 2 wakeup from touch?]]></title><description><![CDATA[<p dir="auto">Hello,<br />
is there a way to make the M5Core2 wake up from sleeping modes by touching the screen?<br />
I'm aware of the "esp_sleep_enable_touchpad_wakeup();" function, but I just can't get it  to do what it is supposed to. Using "touchAttachInterrupt(G27, callback, Threshold);" does not help. Furthermore, except for G27, all other pins I tried to tie to this function  (0,2,4,12-15,27,32,33) lead to permanent reboot cycles. With G27, at least this issue did not occur.<br />
Your response is highly appreciated,<br />
digs</p>
]]></description><link>https://community.m5stack.com/topic/4679/core-2-wakeup-from-touch</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Mar 2026 18:00:37 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4679.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Oct 2022 19:10:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Core 2 wakeup from touch? on Sat, 08 Oct 2022 07:59:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/26917">@digs71</a> Cool</p>
]]></description><link>https://community.m5stack.com/post/18904</link><guid isPermaLink="true">https://community.m5stack.com/post/18904</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 08 Oct 2022 07:59:47 GMT</pubDate></item><item><title><![CDATA[Reply to Core 2 wakeup from touch? on Sat, 08 Oct 2022 06:37:57 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/26917">@digs71</a></p>
<p dir="auto">I am glad to hear you got it sorted out. Thank you for reporting back.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/18903</link><guid isPermaLink="true">https://community.m5stack.com/post/18903</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 08 Oct 2022 06:37:57 GMT</pubDate></item><item><title><![CDATA[Reply to Core 2 wakeup from touch? on Fri, 07 Oct 2022 17:21:29 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a>,</p>
<p dir="auto">after your reply (thanxxxs!) I tested again. And this time it worked   :-)))  I must have messed up your original example code 'til the failure point with my supplements. This time I sticked rigoroulsy to your formulation. Success!</p>
<p dir="auto">Regarding your literature hints: Thanks again. I had gone through relevant randomnerd tutorials before. That's how  "esp_sleep_enable_touchpad_wakeup()" came to my mind... a dead end road as I learned from your remarks. The Espressif sleep docu I have yet to read.</p>
<p dir="auto">Best,<br />
digs</p>
]]></description><link>https://community.m5stack.com/post/18890</link><guid isPermaLink="true">https://community.m5stack.com/post/18890</guid><dc:creator><![CDATA[digs71]]></dc:creator><pubDate>Fri, 07 Oct 2022 17:21:29 GMT</pubDate></item><item><title><![CDATA[Reply to Core 2 wakeup from touch? on Fri, 07 Oct 2022 14:17:05 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/26917">@digs71</a></p>
<p dir="auto"><code>esp_sleep_enable_gpio_wakeup</code> can only be used for light sleep but not for deep sleep. See ESP32 <a href="https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/sleep_modes.html" target="_blank" rel="noopener noreferrer nofollow ugc">sleep</a> modes.</p>
<p dir="auto">If you want to use deep sleep check out this <a href="https://github.com/felmue/MyM5StackExamples/blob/main/M5Core2/DeepSleepWakeFromTouch.ino" target="_blank" rel="noopener noreferrer nofollow ugc">example</a>.</p>
<p dir="auto">Please also check out this <a href="https://randomnerdtutorials.com/esp32-deep-sleep-arduino-ide-wake-up-sources/" target="_blank" rel="noopener noreferrer nofollow ugc">article</a> about different sleep modes.</p>
<p dir="auto">The sleep functions are not M5Core2 specific. They are functions of the ESP32 so it should work on all devices using ESP32. It is normal for them to be found in esp32 related libraries, but not in the M5Core2 library.</p>
<p dir="auto">Both my sleep examples have been tested on an M5Core2 (under ESP32 Arduino framework 2.0.4 and 2.0.5), so I am stumped as to why it fails for you.</p>
<p dir="auto">Could you please post the debug log - hopefully this will shed some light on the reason for the reboot.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/18885</link><guid isPermaLink="true">https://community.m5stack.com/post/18885</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 07 Oct 2022 14:17:05 GMT</pubDate></item><item><title><![CDATA[Reply to Core 2 wakeup from touch? on Fri, 07 Oct 2022 11:15:49 GMT]]></title><description><![CDATA[<p dir="auto">hi <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a>,</p>
<p dir="auto">meanwhile I tested your proposed solution. Unfortunately, it just lead to a continuous reboot cycle without any sleep state ever reached :-((<br />
Substituting "deep_sleep" for "light_sleep" did not change anything.</p>
<p dir="auto">Grepping in my Arduino libraries i found  "gpio_wakeup_enable"  and "esp_sleep_enable_gpio_wakeup"   to be declared in various header files under<br />
~/.arduino15/packages/esp32/hardware/esp32/2.0.5/...<br />
~/.arduino15/staging/packages/2.0.4/...<br />
~/.arduino15/packages/m5stack/hardware/esp32/2.0.4<br />
but not under  ~/Arduino/libraries/M5Core2....</p>
<p dir="auto">The CST_INT definition was found under  ~/Arduino/libraries/M5Core2...<br />
whereas  GPIO_INTR_LOW_LEVEL again only  in the ~/.arduino15 branch</p>
<p dir="auto">Is the multitude of declarations under .arduino15 or the absence from the M5Core2 libraries a potential explanation for failure?  Could it be, that your solution works fine with one of the ESP32 development boards but not with the M5Core2?</p>
<p dir="auto">Appreciating your response.<br />
Best, digs</p>
]]></description><link>https://community.m5stack.com/post/18882</link><guid isPermaLink="true">https://community.m5stack.com/post/18882</guid><dc:creator><![CDATA[digs71]]></dc:creator><pubDate>Fri, 07 Oct 2022 11:15:49 GMT</pubDate></item><item><title><![CDATA[Reply to Core 2 wakeup from touch? on Thu, 06 Oct 2022 06:50:25 GMT]]></title><description><![CDATA[<p dir="auto">hi <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a>,</p>
<p dir="auto">thanks a lot for the fast reply. i'll try your proposed solution asap. seems i've missed out on this basic solution, although i did quite some search before and never stumbled across such a piece of code. however, i'll get back to you.</p>
<p dir="auto">have a good day, digs</p>
]]></description><link>https://community.m5stack.com/post/18858</link><guid isPermaLink="true">https://community.m5stack.com/post/18858</guid><dc:creator><![CDATA[digs71]]></dc:creator><pubDate>Thu, 06 Oct 2022 06:50:25 GMT</pubDate></item><item><title><![CDATA[Reply to Core 2 wakeup from touch? on Wed, 05 Oct 2022 21:04:44 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/26917">@digs71</a></p>
<p dir="auto"><code>esp_sleep_enable_touchpad_wakeup();</code> is meant for when some of the ESP32 GPIOs are used as <a href="https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/touch_pad.html" target="_blank" rel="noopener noreferrer nofollow ugc">capacitive touch pads</a>. They are completely different form the M5Core2 touch screen.</p>
<p dir="auto">Have a look at this <a href="https://github.com/felmue/MyM5StackExamples/blob/main/M5Core2/LightSleepWakeFromTouch.ino" target="_blank" rel="noopener noreferrer nofollow ugc">example</a> which puts ESP32 into light sleep which then can be woken by touching the screen.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/18849</link><guid isPermaLink="true">https://community.m5stack.com/post/18849</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 05 Oct 2022 21:04:44 GMT</pubDate></item></channel></rss>