<?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[how to detect by software if I am connected by usb or I am using the battery?]]></title><description><![CDATA[<p dir="auto">I would like to check if I am charging the T-display-s3 or I am using the battery only. I know that led red is on if I am charging, but I would like to check it by software. It is possible?</p>
<p dir="auto">Kind regards.</p>
]]></description><link>https://www.community.lilygo.cc/topic/199/how-to-detect-by-software-if-i-am-connected-by-usb-or-i-am-using-the-battery</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 05:14:43 GMT</lastBuildDate><atom:link href="https://www.community.lilygo.cc/topic/199.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 25 Mar 2023 13:06:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to how to detect by software if I am connected by usb or I am using the battery? on Sat, 25 Mar 2023 21:35:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://www.community.lilygo.cc/uid/670">@hosky</a> well, you could use the esp32 built in ADC to read pin 4 bat volt, or wire the 5V pin to a voltage divider and then to a GPIO,  such as 16 and digitalRead it.</p>
]]></description><link>https://www.community.lilygo.cc/post/476</link><guid isPermaLink="true">https://www.community.lilygo.cc/post/476</guid><dc:creator><![CDATA[teastain2]]></dc:creator><pubDate>Sat, 25 Mar 2023 21:35:22 GMT</pubDate></item></channel></rss>