<?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[Overwrite with &quot;printf&quot; command]]></title><description><![CDATA[<p dir="auto">I'm trying to put on the lcd a number with the command "printf", but the screen writes the number over the previous one, so the result is a colored square in a short time.<br />
I attach the code I'm using in case anyone can help me, thanks in advance.</p>
<p dir="auto">#include &lt;M5Stack.h&gt;<br />
…….<br />
double tiempoSegundos= 0;<br />
void Printseg()   // Presenta los seg en pantalla<br />
{<br />
M5.lcd.setCursor(0,180);<br />
M5.Lcd.printf("   %6.3f",tiempoSegundos );<br />
}<br />
void setup() {<br />
M5.begin();  // inicio del M5S:</p>
<p dir="auto">…..<br />
void loop() {<br />
……<br />
Printseg();  }</p>
]]></description><link>https://community.m5stack.com/topic/1671/overwrite-with-printf-command</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Mar 2026 20:22:50 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1671.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 02 Feb 2020 10:13:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Overwrite with &quot;printf&quot; command on Sun, 02 Feb 2020 16:31:55 GMT]]></title><description><![CDATA[<p dir="auto">Yes, correct I used the  " M5.Lcd.setTextColor (YELLOW, BLACK);" in the setup  command ,  and effectively overwriting by deleting the above. Thank you.<br />
Greetings.</p>
]]></description><link>https://community.m5stack.com/post/7287</link><guid isPermaLink="true">https://community.m5stack.com/post/7287</guid><dc:creator><![CDATA[Matorra]]></dc:creator><pubDate>Sun, 02 Feb 2020 16:31:55 GMT</pubDate></item><item><title><![CDATA[Reply to Overwrite with &quot;printf&quot; command on Sun, 02 Feb 2020 13:06:02 GMT]]></title><description><![CDATA[<p dir="auto">1 clear whole screen before print (possible flicker screen)<br />
2 print same text on the same position with background color<br />
3 draw filled rectangle with background color that cover area where text was printed</p>
]]></description><link>https://community.m5stack.com/post/7286</link><guid isPermaLink="true">https://community.m5stack.com/post/7286</guid><dc:creator><![CDATA[robalstona]]></dc:creator><pubDate>Sun, 02 Feb 2020 13:06:02 GMT</pubDate></item></channel></rss>