<?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[UNIT-EARTH with a M5Stack Core - Proper Pin?]]></title><description><![CDATA[<p dir="auto">Is the the correct code when using a M5Stack core. I don't get any changes when reading the values? Thanks in advance.</p>
<p dir="auto">#include &lt;M5Stack.h&gt;</p>
<p dir="auto">void setup()<br />
{<br />
M5.begin();             // Init M5Stack.  初始化M5Stack<br />
M5.Power.begin();       // Init power  初始化电源模块<br />
M5.lcd.setTextSize(2);  // Set the text size to 2.  设置文字大小为2<br />
M5.Lcd.printf("UNIT_EARTH EXAMPLE\n");<br />
pinMode(26, INPUT);  // Set pin 26 to input mode.  将引脚26设置为输入模式<br />
dacWrite(25, 0);     // disable the speak noise.  禁用喇叭<br />
}</p>
<p dir="auto">void loop()<br />
{<br />
M5.Lcd.setCursor(0, 80);  // Set the cursor at (0,80).  将光标设置在(0,80)<br />
M5.Lcd.printf("AnalogRead:%d\n", analogRead(36));<br />
M5.Lcd.printf("DigitalRead:%d\n", digitalRead(26));<br />
delay(1000);<br />
}</p>
]]></description><link>https://community.m5stack.com/topic/7602/unit-earth-with-a-m5stack-core-proper-pin</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 04:12:47 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7602.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 07 Jun 2025 23:39:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to UNIT-EARTH with a M5Stack Core - Proper Pin? on Tue, 10 Jun 2025 16:38:56 GMT]]></title><description><![CDATA[<p dir="auto">I don't recommend this product. This is what it looks like after being in a barely damp plant overnight! No wonder I couldn't get any readings! <img src="/assets/uploads/files/1749573531965-img_9390.jpg" alt="IMG_9390.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/29215</link><guid isPermaLink="true">https://community.m5stack.com/post/29215</guid><dc:creator><![CDATA[wwhite]]></dc:creator><pubDate>Tue, 10 Jun 2025 16:38:56 GMT</pubDate></item><item><title><![CDATA[Reply to UNIT-EARTH with a M5Stack Core - Proper Pin? on Tue, 10 Jun 2025 15:52:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/teastain" aria-label="Profile: teastain">@<bdi>teastain</bdi></a> Thank you. It's got a grove connector and I didn't want to cut it.</p>
]]></description><link>https://community.m5stack.com/post/29212</link><guid isPermaLink="true">https://community.m5stack.com/post/29212</guid><dc:creator><![CDATA[wwhite]]></dc:creator><pubDate>Tue, 10 Jun 2025 15:52:49 GMT</pubDate></item><item><title><![CDATA[Reply to UNIT-EARTH with a M5Stack Core - Proper Pin? on Sun, 08 Jun 2025 04:45:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wwhite" aria-label="Profile: wwhite">@<bdi>wwhite</bdi></a> Did you plug the UNIT into the red socket on the left side?<br />
These inputs are: 21 and 22.<br />
You could plug it into the discrete I/Os around the base on the right side where you will find 26 and 36.</p>
]]></description><link>https://community.m5stack.com/post/29188</link><guid isPermaLink="true">https://community.m5stack.com/post/29188</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Sun, 08 Jun 2025 04:45:22 GMT</pubDate></item></channel></rss>