<?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[M5stack GPS, use Serial2 and Serial1]]></title><description><![CDATA[<p dir="auto">This device : ATOMIC GPS Base (M8030-KT) uses Serial2 to communicate with the GPS chip.<br />
Now i am trying to use Serial1.begin(19200, SERIAL_8N1, 32, 26) to communicate with another device.<br />
I know that this device is working, i have tested it with master module.<br />
I have also switche TX and RX ports. Still no respond from the slave.</p>
<p dir="auto">So i was wondering, is it possible to use Serial1 on M5atom lite with the 32 and 26 ports?<br />
Thanks</p>
]]></description><link>https://community.m5stack.com/topic/6599/m5stack-gps-use-serial2-and-serial1</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 12:19:56 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6599.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 Jul 2024 08:06:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5stack GPS, use Serial2 and Serial1 on Mon, 01 Jul 2024 18:52:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a> said in <a href="/post/25721">M5stack GPS, use Serial2 and Serial1</a>:</p>
<p dir="auto">Well, now i need to recheck what i have been doing.<br />
Your example works both on M5Stick (using ports 0 and 26) and M5Atom (ports 26 and 32).</p>
<p dir="auto">Thank you, i have some work to do, Ha Ha</p>
]]></description><link>https://community.m5stack.com/post/25723</link><guid isPermaLink="true">https://community.m5stack.com/post/25723</guid><dc:creator><![CDATA[HappyUser]]></dc:creator><pubDate>Mon, 01 Jul 2024 18:52:38 GMT</pubDate></item><item><title><![CDATA[Reply to M5stack GPS, use Serial2 and Serial1 on Mon, 01 Jul 2024 15:25:03 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/happyuser" aria-label="Profile: HappyUser">@<bdi>HappyUser</bdi></a></p>
<p dir="auto">have you tried directly looping back TX into RX? E.g. connect G26 to G32? Then try withsomething like this in the <code>loop()</code>:</p>
<pre><code>  static uint32_t lastTime = 0;
  if(millis() - lastTime &gt; 5000)
  {
    lastTime = millis();
    Serial1.println("hello");
  }
  if(Serial1.available() &gt; 0)
  {
    while(Serial1.available() &gt; 0)
    {
      Serial.print(Serial1.readStringUntil('\n'));
    }
    Serial.println();
  }
</code></pre>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/25721</link><guid isPermaLink="true">https://community.m5stack.com/post/25721</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Mon, 01 Jul 2024 15:25:03 GMT</pubDate></item></channel></rss>