<?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 Plus - detect power button momentary press?]]></title><description><![CDATA[<p dir="auto">I can't find a way to detect a momentary press of the power button on the M5StickCPlus, only button A and button B detection is described. Is there any way to do this in C++?</p>
]]></description><link>https://community.m5stack.com/topic/3722/m5stickc-plus-detect-power-button-momentary-press</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Mar 2026 05:29:42 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3722.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 08 Nov 2021 22:28:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5StickC Plus - detect power button momentary press? on Tue, 09 Nov 2021 08:46:56 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/13702">@bazman</a></p>
<p dir="auto">according to the schematic the power button only is connected to the AXP192 and not to an ESP32 GPIO as are buttons A and B. Luckily the AXP192 can be setup to detect the power button short / long press via interrupt.</p>
<p dir="auto">Checkout the AXP192 datasheet - you can find it <a href="https://github.com/m5stack/M5-Schematic/tree/master/Core" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>. The AXP192 registers dealing with short / long power button press interrupts are 0x42 (IRQ enable 3) and 0x46 (IRQ status 3).</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/15408</link><guid isPermaLink="true">https://community.m5stack.com/post/15408</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 09 Nov 2021 08:46:56 GMT</pubDate></item></channel></rss>