<?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[Detecting USB power supply]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I am searching for guidance to trigger an WIFI action when the USB power supply has been detected.<br />
In my case the M5StickC is connected to my amplifier by USB Plug and as soon as the amplifier is switched on, the M5Stick shall send a wifi command enabling 2 WIFI plugs activating the rest of the stuff.</p>
<p dir="auto">I have some experience with Arduino, but not specifically with M5StickC. Please guide me...</p>
<p dir="auto">Stay safe and healthy!</p>
]]></description><link>https://community.m5stack.com/topic/1799/detecting-usb-power-supply</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 12:54:41 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1799.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 27 Mar 2020 13:12:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Detecting USB power supply on Fri, 27 Mar 2020 17:06:56 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the hint. I got the script working now!</p>
]]></description><link>https://community.m5stack.com/post/7933</link><guid isPermaLink="true">https://community.m5stack.com/post/7933</guid><dc:creator><![CDATA[soulid]]></dc:creator><pubDate>Fri, 27 Mar 2020 17:06:56 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting USB power supply on Fri, 27 Mar 2020 13:54:23 GMT]]></title><description><![CDATA[<p dir="auto">see this file</p>
<p dir="auto"><a href="https://github.com/m5stack/M5StickC/blob/master/src/AXP192.h" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5StickC/blob/master/src/AXP192.h</a></p>
<p dir="auto">It is a part of M5StickC library for arduino</p>
<p dir="auto">You find it in a functions that help you to determine when power is connected to usb port, what voltage input and what current flow.</p>
<p dir="auto">You should interest this functions of axp192<br />
GetVinVoltage();<br />
GetVinCurrent();</p>
]]></description><link>https://community.m5stack.com/post/7932</link><guid isPermaLink="true">https://community.m5stack.com/post/7932</guid><dc:creator><![CDATA[robalstona]]></dc:creator><pubDate>Fri, 27 Mar 2020 13:54:23 GMT</pubDate></item></channel></rss>