<?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[Which Serial is Port.C on the M5Paper?]]></title><description><![CDATA[<p dir="auto">hello,</p>
<p dir="auto">like to use the m5paper port.c to serial read a gps. cannot seem to find which serial port is port.c. Serial is USB-C port, so is it Serial1? documentation only mentions g18/g19...</p>
<p dir="auto">thanks<br />
frank</p>
]]></description><link>https://community.m5stack.com/topic/6714/which-serial-is-port-c-on-the-m5paper</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Mar 2026 20:41:23 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6714.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Aug 2024 11:56:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Which Serial is Port.C on the M5Paper? on Wed, 21 Aug 2024 12:51:34 GMT]]></title><description><![CDATA[<p dir="auto">answering my own question:</p>
<pre><code>#include &lt;M5EPD.h&gt;
#include &lt;TinyGPS++.h&gt;

  static const uint32_t GPSBaud = 9600;

TinyGPSPlus gps;
HardwareSerial ss(2);

M5EPD_Canvas canvas(&amp;M5.EPD);

char latStr[10];
char lonStr[10];
char speedStr[10];

void setup() {

  M5.begin();
  M5.EPD.SetRotation(0);
  M5.EPD.Clear(true);

  ss.begin(GPSBaud, SERIAL_8N1, 19, 18);

  canvas.createCanvas(960, 540);
  canvas.setTextSize(3);
  canvas.clear();
}

void loop() {

  int b = ss.available();

  while (b &gt; 0) {

    gps.encode(ss.read());

    double lat = gps.location.lat();
    double lon = gps.location.lng();
    double speed = gps.speed.kmph();

    dtostrf(lat, 2, 2, latStr);
    dtostrf(lon, 2, 2, lonStr);
    dtostrf(speed, 2, 2, speedStr);

    canvas.clear();
    canvas.drawString("Lat:   " + String(latStr), 50, 100);
    canvas.drawString("Lon:   " + String(lonStr), 50, 150);
    canvas.drawString("Speed: " + String(speedStr), 50, 200);
    canvas.pushCanvas(0, 0, UPDATE_MODE_DU4);
  }
}
</code></pre>
]]></description><link>https://community.m5stack.com/post/26180</link><guid isPermaLink="true">https://community.m5stack.com/post/26180</guid><dc:creator><![CDATA[frank_b]]></dc:creator><pubDate>Wed, 21 Aug 2024 12:51:34 GMT</pubDate></item></channel></rss>