<?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 turn on when connect Type-C USB with power (How to disable?)]]></title><description><![CDATA[<p dir="auto">When I plugin Type-C USB with power, M5stickC will turn on automatically. Is it possible to disable?</p>
]]></description><link>https://community.m5stack.com/topic/3459/m5stickc-turn-on-when-connect-type-c-usb-with-power-how-to-disable</link><generator>RSS for Node</generator><lastBuildDate>Mon, 11 May 2026 06:48:41 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3459.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 Jul 2021 04:11:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5stickC turn on when connect Type-C USB with power (How to disable?) on Fri, 03 Sep 2021 20:42:33 GMT]]></title><description><![CDATA[<p dir="auto">Don't know if still relevant, but you can just power it off if you see it was plugged in.<br />
I attach a basic code here, and you can tweak it to your needs of course.</p>
<p dir="auto">Be aware that you might need to use a small delay before M5.Axp.GetVBusVoltage() will give you a result you can trust.</p>
<p dir="auto">//function which reads the voltage coming out of the USB, and if it's above 4.1 I know the device is being charged.<br />
bool isBeingCharged()<br />
{<br />
float charge = M5.Axp.GetVBusVoltage();<br />
<a href="//Serial.println" target="_blank" rel="noopener noreferrer nofollow ugc">//Serial.println</a>(charge);<br />
return charge &gt; 4.1;<br />
}</p>
<p dir="auto">//check here of anywhere you want in the code if the device is being charged, and power it off.<br />
void setup()<br />
{<br />
if (isBeingCharged())<br />
{<br />
M5.Axp.PowerOff();<br />
}<br />
}</p>
]]></description><link>https://community.m5stack.com/post/14800</link><guid isPermaLink="true">https://community.m5stack.com/post/14800</guid><dc:creator><![CDATA[edoceder]]></dc:creator><pubDate>Fri, 03 Sep 2021 20:42:33 GMT</pubDate></item><item><title><![CDATA[Reply to M5stickC turn on when connect Type-C USB with power (How to disable?) on Tue, 20 Jul 2021 03:13:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a></p>
<p dir="auto">I would like to disable this function by Arduino. I don't want to modify the hardware. Btw, thank you for your reply.</p>
]]></description><link>https://community.m5stack.com/post/14448</link><guid isPermaLink="true">https://community.m5stack.com/post/14448</guid><dc:creator><![CDATA[sgnp2091]]></dc:creator><pubDate>Tue, 20 Jul 2021 03:13:02 GMT</pubDate></item><item><title><![CDATA[Reply to M5stickC turn on when connect Type-C USB with power (How to disable?) on Sun, 18 Jul 2021 08:18:40 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/sgnp2091" aria-label="Profile: sgnp2091">@<bdi>sgnp2091</bdi></a></p>
<p dir="auto">do you mean disable by software or hardware?</p>
<p dir="auto">The way M5StickC Plus is wired internally I don't think it is possible to disable this functionality by software, but I guess it would be possible by a hardware modification.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/14439</link><guid isPermaLink="true">https://community.m5stack.com/post/14439</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sun, 18 Jul 2021 08:18:40 GMT</pubDate></item></channel></rss>