<?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[DigitalWrite]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I am trying to use C to on the LED on my M5 stick c plus.</p>
<p dir="auto">I have initialise pin 10 as the output, and when I send digitalWrite(led_pin, 0), it ons the LED.</p>
<p dir="auto">My code causes the LED to on when 0 is sent, and off when 1 is sent. Any idea why it seemed like it is flipped? Thank you</p>
]]></description><link>https://community.m5stack.com/topic/4963/digitalwrite</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 12:21:41 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4963.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 Jan 2023 08:53:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DigitalWrite on Tue, 10 Jan 2023 19:34:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sleepyfatcat" aria-label="Profile: sleepyfatcat">@<bdi>sleepyfatcat</bdi></a> said in <a href="/post/19796">DigitalWrite</a>:</p>
<blockquote>
<p dir="auto">Hello,</p>
<p dir="auto">I am trying to use C to on the LED on my M5 stick c plus.</p>
<p dir="auto">I have initialise pin 10 as the output, and when I send digitalWrite(led_pin, 0), it ons the LED.</p>
<p dir="auto">My code causes the LED to on when 0 is sent, and off when 1 is sent. Any idea why it seemed like it is flipped? Thank you</p>
</blockquote>
<p dir="auto">This apparently is normal behaviour for most ESP Cores from what I have found in data sheets and is very confusing.</p>
]]></description><link>https://community.m5stack.com/post/19815</link><guid isPermaLink="true">https://community.m5stack.com/post/19815</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 10 Jan 2023 19:34:55 GMT</pubDate></item><item><title><![CDATA[Reply to DigitalWrite on Tue, 10 Jan 2023 10:58:22 GMT]]></title><description><![CDATA[<p dir="auto">This is a normal behaviour. Look at the schematic of the device: <a href="https://docs.m5stack.com/en/core/m5stickc_plus" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/en/core/m5stickc_plus</a> the LED is between GPIO 10 and +3.3V (I miss a resistor here but this makes no difference to your issue). As long as the port 10 is "High" (or "1")  the LED is hanging between 3.3V and 3.3V from the port and cannot light up. If you set the port to "Low" ("0") the LED is between 3.3V and GND and light up.</p>
]]></description><link>https://community.m5stack.com/post/19801</link><guid isPermaLink="true">https://community.m5stack.com/post/19801</guid><dc:creator><![CDATA[holofloh]]></dc:creator><pubDate>Tue, 10 Jan 2023 10:58:22 GMT</pubDate></item><item><title><![CDATA[Reply to DigitalWrite on Tue, 10 Jan 2023 10:46:15 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/sleepyfatcat" aria-label="Profile: sleepyfatcat">@<bdi>sleepyfatcat</bdi></a></p>
<p dir="auto">if you look at the <a href="https://docs.m5stack.com/en/core/m5stickc_plus" target="_blank" rel="noopener noreferrer nofollow ugc">schematic</a> you'll see that the plus side of the LED is tied to VESP_3V3 and the negative side is tied to GPIO10. In order for the LED to light up the GPIO needs to go low. So nothing is wrong it's just how the LED is connected.</p>
<p dir="auto">BTW: this is a common thing in electronics as it is easier (cheaper) to switch to GND.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/19799</link><guid isPermaLink="true">https://community.m5stack.com/post/19799</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 10 Jan 2023 10:46:15 GMT</pubDate></item></channel></rss>