<?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[G20 as OUTPUT Stamp C3]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">i have the Stap C3 and i like to use the Pin G20 as Output to drive a small LED. The LED get 3.3V and the Output should switch to low to activate the LED. i also have a series resistor (Same circuit is working fine in G21 and G7). My test program is verry simple:</p>
<p dir="auto">void setup() {<br />
// put your setup code here, to run once:<br />
pinMode(7, OUTPUT);<br />
pinMode(20, OUTPUT);<br />
pinMode(21, OUTPUT);<br />
digitalWrite(7, 0);<br />
digitalWrite(20, 0);<br />
digitalWrite(21, 0);<br />
}</p>
<p dir="auto">void loop() {<br />
// put your main code here, to run repeatedly:</p>
<p dir="auto">}</p>
<p dir="auto">only the LED on G7 and G21 is on. I think it have someting to do with the UART, becaus G20 is also RX. I´m sure the circuit is fine because the LED is flashing during the update process.</p>
<p dir="auto">Does anyone know how i switch G20 to Output mode?</p>
<p dir="auto">Gest regards,<br />
Berni4</p>
]]></description><link>https://community.m5stack.com/topic/4030/g20-as-output-stamp-c3</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 22:41:07 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4030.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 11 Feb 2022 12:59:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to G20 as OUTPUT Stamp C3 on Fri, 11 Feb 2022 16:47:22 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/berni4" aria-label="Profile: Berni4">@<bdi>Berni4</bdi></a></p>
<p dir="auto">the C3' TX (GPIO21) is connected to the USB UART RX pin; in other words the C3 is driving the line, therefore your code can blink an LED on GPIO21 just fine.</p>
<p dir="auto">However the C3' RX (GPIO20) is connected to the USB UART TX pin; in this case the USB UART and the C3 are both trying to drive the line and it looks like the USB UART is winning.</p>
<p dir="auto">In short, without hardware modification I don't see a way to use GPIO20 for anything else than UART functionality.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/16620</link><guid isPermaLink="true">https://community.m5stack.com/post/16620</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 11 Feb 2022 16:47:22 GMT</pubDate></item></channel></rss>