<?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[Sending MQTT data to the LCD]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I'm using the M5 to display temp data from an MQTT server.<br />
All works OK but I'm using</p>
<p dir="auto">for (int i = 0; i &lt; length; i++) {<br />
M5.Lcd.setFreeFont(FMB24);<br />
M5.Lcd.print((char)payload[i]);<br />
}</p>
<p dir="auto">To print to the screen, when I print a second value underneath it I had to remove a screen clear command so I could see both values, now the numbers are overwriting each other.</p>
<p dir="auto">I want to use Drawstring command as this adds a background which I assume will remove the previous numbers but I cannot get it to work with the char based payload, I've tried to convert it but cannot get it working.</p>
<p dir="auto">Has anyone used Pubsubclient and printed values to the screen using Drawstring?</p>
<p dir="auto">Cheers,<br />
Phil</p>
]]></description><link>https://community.m5stack.com/topic/274/sending-mqtt-data-to-the-lcd</link><generator>RSS for Node</generator><lastBuildDate>Tue, 05 May 2026 11:07:21 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/274.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 31 Jul 2018 19:43:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Sending MQTT data to the LCD on Wed, 01 Aug 2018 16:32:38 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I'm not using M5ez yet but I will give it a try, I've set the background colour but I don't think it works with M5.Lcd.print commands.</p>
]]></description><link>https://community.m5stack.com/post/1347</link><guid isPermaLink="true">https://community.m5stack.com/post/1347</guid><dc:creator><![CDATA[gadjet]]></dc:creator><pubDate>Wed, 01 Aug 2018 16:32:38 GMT</pubDate></item><item><title><![CDATA[Reply to Sending MQTT data to the LCD on Wed, 01 Aug 2018 08:37:32 GMT]]></title><description><![CDATA[<p dir="auto">Whether a background color is printed depends on whether you supply one or two color values to <code>m5.lcd.setTextColor</code>, I think. Are you using M5ez? If so, try <code>ez.print</code> / <code>ez.println</code> ?</p>
]]></description><link>https://community.m5stack.com/post/1339</link><guid isPermaLink="true">https://community.m5stack.com/post/1339</guid><dc:creator><![CDATA[Rop]]></dc:creator><pubDate>Wed, 01 Aug 2018 08:37:32 GMT</pubDate></item></channel></rss>