<?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[M5StickC and ULP wakeup]]></title><description><![CDATA[<p dir="auto">When I try to program the ULP and enable esp_sleep_enable_ulp_wakeup();</p>
<p dir="auto">I use the following code with esp_sleep_enable[...] before M5.Deepsleep()</p>
<pre><code>  esp_sleep_enable_ext0_wakeup(GPIO_NUM_37, LOW); // button A 1 = High, 0 = Low
#define BUTTON_PIN_BITMASK 0x8000000000 // 2^39 in hex (button B)
  esp_sleep_enable_ext1_wakeup(BUTTON_PIN_BITMASK, ESP_EXT1_WAKEUP_ALL_LOW);
  esp_sleep_enable_timer_wakeup(takeSampleTime);
  esp_sleep_enable_ulp_wakeup(); // conflict with ext0/ext1/touch/ulp?
</code></pre>
<p dir="auto">If I use ButtonA&amp;ButtonB wake EXT0 and EXT1 on the log the ESP tells me something like:</p>
<pre><code>E (16967) sleep: Conflicting wake-up trigger: ext0
</code></pre>
<p dir="auto">And If I disable the buttons wakeup, also tells me about GPIO TOUCH conflict :(</p>
<p dir="auto">What are the steps to get button wakeup, timer wakeup and ULP wakeup at same time?</p>
]]></description><link>https://community.m5stack.com/topic/3196/m5stickc-and-ulp-wakeup</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 09:29:15 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3196.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Apr 2021 05:40:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5StickC and ULP wakeup on Thu, 15 Apr 2021 19:04:27 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/6279">@sharek</a></p>
<p dir="auto">you don't need both <code>ext0</code> and <code>ext1</code> for the two buttons. You should be able to cover both buttons with <code>ext1</code> by adding both to the bitmask:</p>
<pre><code>#define BUTTON_PIN_BITMASK ((1UL &lt;&lt; 37) | (1UL &lt;&lt; 39))
</code></pre>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/13534</link><guid isPermaLink="true">https://community.m5stack.com/post/13534</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 15 Apr 2021 19:04:27 GMT</pubDate></item></channel></rss>