<?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[Is it possible to wakeup M5stack paper from the shutdown mode using Port A, B or C?]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I have understand that the <a href="https://shop.m5stack.com/products/m5paper-esp32-development-kit-v1-1-960x540-4-7-eink-display-235-ppi?srsltid=AfmBOoqdzRZDMqiGW7LuSK1kDQ6RgbZdcnNYRxW-6_AbEnxfv54wLmkT" target="_blank" rel="noopener noreferrer nofollow ugc">M5 stack paper</a> can wakeup from the shutdown mode by long pressing the side button but sometimes it is not feasible.</p>
<p dir="auto">Is it possible to configure M5 stack paper in a way that:</p>
<ol>
<li>It will wake up from short press of the side button?</li>
<li>It will wake up using Port A, B or C by connecting the external button? e.g <a href="https://shop.m5stack.com/products/mini-dual-button-unit?srsltid=AfmBOorGX9h--qINta1RB_vMt429KNe1WFOiaJ_fWdfwfBGCISkJWHqE" target="_blank" rel="noopener noreferrer nofollow ugc">this button from M5</a></li>
</ol>
]]></description><link>https://community.m5stack.com/topic/6984/is-it-possible-to-wakeup-m5stack-paper-from-the-shutdown-mode-using-port-a-b-or-c</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Mar 2026 12:40:29 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6984.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 Nov 2024 09:47:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Is it possible to wakeup M5stack paper from the shutdown mode using Port A, B or C? on Fri, 29 Nov 2024 18:25:56 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/24517">@ScheduleDisplay</a></p>
<p dir="auto">I am glad to hear it works for you now.</p>
<p dir="auto">Yes, the battery will drain much faster when using ESP32 deep sleep or light sleep compared to a full shutdown.</p>
<p dir="auto">You can find the currents for all three modes <a href="https://www.gwendesign.ch/kb/m5stack/m5paper/#light-sleep-deep-sleep-and-shutdown-current" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/27234</link><guid isPermaLink="true">https://community.m5stack.com/post/27234</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 29 Nov 2024 18:25:56 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to wakeup M5stack paper from the shutdown mode using Port A, B or C? on Fri, 29 Nov 2024 15:27:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a><br />
Thank you very much for your reply and help.<br />
The code is working now. The M5 paper is now waking up with and without the USB charger connection. :)</p>
<p dir="auto">Just a quick question. Now we have commented out the below lines, so does that means that the battery will drain out much faster as the M5 paper is in light sleep mode?</p>
<pre><code>M5.shutdown();
</code></pre>
<pre><code>M5.disableEXTPower(); 
</code></pre>
]]></description><link>https://community.m5stack.com/post/27231</link><guid isPermaLink="true">https://community.m5stack.com/post/27231</guid><dc:creator><![CDATA[ScheduleDisplay]]></dc:creator><pubDate>Fri, 29 Nov 2024 15:27:29 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to wakeup M5stack paper from the shutdown mode using Port A, B or C? on Fri, 29 Nov 2024 10:47:11 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/24517">@ScheduleDisplay</a></p>
<p dir="auto">in order to use ESP32 deep sleep ESP32 and external power to the Grove ports need to stay on. Grove power is required for the pull-up resistors in the button unit. (Internal pull-up is too weak.)</p>
<p dir="auto">I can get your sketch to work if I comment the following lines:</p>
<pre><code>//    M5.shutdown();                    // Shutdown the display and peripherals

//    M5.disableEXTPower();             // Disable external power supply
</code></pre>
<p dir="auto">and adding this line:</p>
<pre><code>gpio_hold_dis((gpio_num_t)M5EPD_EXT_PWR_EN_PIN);
</code></pre>
<p dir="auto">after the other <code>gpio_hold_dis()</code> line.</p>
<p dir="auto">Plus adding this line:</p>
<pre><code>gpio_hold_en((gpio_num_t)M5EPD_EXT_PWR_EN_PIN);
</code></pre>
<p dir="auto">after the other <code>gpio_hold_en()</code> line.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/27226</link><guid isPermaLink="true">https://community.m5stack.com/post/27226</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 29 Nov 2024 10:47:11 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to wakeup M5stack paper from the shutdown mode using Port A, B or C? on Fri, 29 Nov 2024 09:37:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a> Hello,<br />
Thank your for the reply.<br />
I updated the typo and now using the correct GPIO26 pin, but the behavior of E-paper is still the same.</p>
]]></description><link>https://community.m5stack.com/post/27220</link><guid isPermaLink="true">https://community.m5stack.com/post/27220</guid><dc:creator><![CDATA[ScheduleDisplay]]></dc:creator><pubDate>Fri, 29 Nov 2024 09:37:39 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to wakeup M5stack paper from the shutdown mode using Port A, B or C? on Thu, 28 Nov 2024 19:18:21 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/24517">@ScheduleDisplay</a></p>
<p dir="auto">maybe below lines are the issue?</p>
<pre><code>pinMode(WAKEUP_PIN_26, INPUT_PULLUP);  // Enable internal pull-up for stability
esp_sleep_enable_ext0_wakeup((gpio_num_t)WAKEUP_PIN_33, LOW);  // Wake when pin goes LOW
</code></pre>
<p dir="auto">you enable wakeup on GPIO33 while the pullup is set for GPIO26.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/27202</link><guid isPermaLink="true">https://community.m5stack.com/post/27202</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 28 Nov 2024 19:18:21 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to wakeup M5stack paper from the shutdown mode using Port A, B or C? on Thu, 28 Nov 2024 18:40:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a><br />
Hello,<br />
Today I did some testing with the external button to wakeup the M5 stack paper from the deep sleep mode.<br />
I connect the button at the PORT B of Epaper. please see the attached pictures.</p>
<ol>
<li>
<p dir="auto">Not connected to the charger: The Epaper didn't woke up from the deep sleep, as expected, as you said.</p>
</li>
<li>
<p dir="auto">Connected with the charger: The Epaper continously keep restarted after executing the shutdown command, until I unplug the button from the PORT B.<br />
Do you have an idea about this behavior, what is going on with Epaper?</p>
</li>
</ol>
<p dir="auto">This is the code I am running on Epaper</p>
<pre><code>#include &lt;M5EPD.h&gt;
#include &lt;Arduino.h&gt;

M5EPD_Canvas canvas(&amp;M5.EPD);

#define WAKEUP_PIN_26 26  // GPIO pin on PORT B (G26)
#define WAKEUP_PIN_33 33  // GPIO pin on PORT B (G26)
void setup() {
    wakeupM5OnButtonPressMode();
}

void loop() {
}

void wakeupM5OnButtonPressMode(){  
    M5.begin();
    M5.EPD.SetRotation(90);
    M5.EPD.Clear(true);
    canvas.createCanvas(540, 400);
    canvas.setTextSize(4);

    gpio_hold_dis((gpio_num_t)M5EPD_MAIN_PWR_PIN);
    gpio_deep_sleep_hold_dis();

    // Display battery voltage before shutting down
    Serial.print("\nVoltage before shut down: " + String(M5.getBatteryVoltage() / 1000.0));
    
    // Update the e-ink display with messages
    canvas.drawString("Press button on PORT B to wake up!", 5, 160);
    canvas.drawString("Going to sleep in 5 secs...", 5, 200);
    canvas.pushCanvas(0, 0, UPDATE_MODE_DU4);
    delay(5000);

    // Enter deep sleep
    shutdownEPD();
}

void shutdownEPD() {
    Serial.println("\nShutting down...");
    
    // Display voltage after shutdown (for debugging purposes)
    Serial.print("\nVoltage after shutdown: " + String(M5.getBatteryVoltage() / 1000.0));
    Serial.print("\n*********************************************\n");
    
    // Prepare for deep sleep
    M5.shutdown();                    // Shutdown the display and peripherals
    M5.disableEPDPower();             // Disable e-paper power
    M5.disableEXTPower();             // Disable external power supply
    
    // Configure GPIO for wake-up on button press (PORT B - G26)
    pinMode(WAKEUP_PIN_26, INPUT_PULLUP);  // Enable internal pull-up for stability
    esp_sleep_enable_ext0_wakeup((gpio_num_t)WAKEUP_PIN_33, LOW);  // Wake when pin goes LOW
    
    // Hold power pins to preserve state during deep sleep
    gpio_hold_en((gpio_num_t)M5EPD_MAIN_PWR_PIN);
    gpio_deep_sleep_hold_en();
    
    // Enter deep sleep
    esp_deep_sleep_start();
}
</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1732813879224-whatsapp-image-2024-11-28-at-18.00.00_c82f412d.jpg" alt="WhatsApp Image 2024-11-28 at 18.00.00_c82f412d.jpg" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1732813903236-whatsapp-image-2024-11-28-at-18.00.00_64f8f70d.jpg" alt="WhatsApp Image 2024-11-28 at 18.00.00_64f8f70d.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/27200</link><guid isPermaLink="true">https://community.m5stack.com/post/27200</guid><dc:creator><![CDATA[ScheduleDisplay]]></dc:creator><pubDate>Thu, 28 Nov 2024 18:40:42 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to wakeup M5stack paper from the shutdown mode using Port A, B or C? on Fri, 15 Nov 2024 18:25:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a> Thank you very much for your reply.</p>
]]></description><link>https://community.m5stack.com/post/27051</link><guid isPermaLink="true">https://community.m5stack.com/post/27051</guid><dc:creator><![CDATA[ScheduleDisplay]]></dc:creator><pubDate>Fri, 15 Nov 2024 18:25:48 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to wakeup M5stack paper from the shutdown mode using Port A, B or C? on Fri, 15 Nov 2024 15:19:44 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/24517">@ScheduleDisplay</a></p>
<p dir="auto">unfortunately that is not possible; all GPIOs (Port A, B and C) and the GPIO used for the side button go directly to ESP32 which is powered off in shutdown mode.</p>
<p dir="auto">The only two options (I know of) to wakeup M5Paper from shutdown mode are:</p>
<ul>
<li>long press of side button</li>
<li>RTC alarm</li>
</ul>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/27049</link><guid isPermaLink="true">https://community.m5stack.com/post/27049</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 15 Nov 2024 15:19:44 GMT</pubDate></item></channel></rss>