<?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[M5StampS3：GPIO3 Analog input don&#x27;t work]]></title><description><![CDATA[<p dir="auto">I am using the analogue input with the M5Stamp S3, but GPIO3 is constantly outputting 4095.<br />
Other outputs give the correct values.<br />
I use Arduino IDE 2.3.3, and the code is</p>
<pre><code>void setup() {
  Serial.begin(115200); 
  for(int i=1;i&lt;=15;i++){
      pinMode(i,ANALOG);
  }
}
void loop() {
    
   int index = 0; 

  for (int pin = 1; pin &lt;= 15; pin++) {
    v[index] = analogReadMilliVolts(pin); 
    Serial.print(String(v[index]));

    if (index &lt; 13) { 
      Serial.print(",");
    }

    index++; 
  }

  Serial.println(); 
  delay(1000);
    
}



</code></pre>
]]></description><link>https://community.m5stack.com/topic/6915/m5stamps3-gpio3-analog-input-don-t-work</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 21:08:55 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6915.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 21 Oct 2024 07:29:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5StampS3：GPIO3 Analog input don&#x27;t work on Mon, 21 Oct 2024 16:41:24 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/gohan_oishii" aria-label="Profile: gohan_oishii">@<bdi>gohan_oishii</bdi></a></p>
<p dir="auto">GPIO3 on the ESP32S3 is a strapping pin (see <a href="https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-reference/peripherals/gpio.html" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>) and is pulled up via external 10 k resistor (see schematic <a href="https://docs.m5stack.com/en/core/StampS3?id=schematic" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>).</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/26813</link><guid isPermaLink="true">https://community.m5stack.com/post/26813</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Mon, 21 Oct 2024 16:41:24 GMT</pubDate></item></channel></rss>