<?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[How to avoid text flicker ?]]></title><description><![CDATA[<p dir="auto">I am writing text to the same location with updated values. I get the text superimposed on the old text. i use a space, the reset the setCursor, then write the new text. But I get flicker - How to avoid this ? Also if you make a filled rectangle and then write text on it - the whole thing flickers like mad.</p>
]]></description><link>https://community.m5stack.com/topic/173/how-to-avoid-text-flicker</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 21:18:33 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/173.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Apr 2018 05:11:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to avoid text flicker ? on Tue, 17 Apr 2018 09:33:14 GMT]]></title><description><![CDATA[<p dir="auto">Here is the solution. <a href="https://github.com/Bodmer/TFT_eSPI/tree/master/examples/Sprite/Sprite_scroll" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/Bodmer/TFT_eSPI/tree/master/examples/Sprite/Sprite_scroll</a></p>
<p dir="auto">Thanks to <a class="plugin-mentions-user plugin-mentions-a" href="/user/calin" aria-label="Profile: Calin">@<bdi>Calin</bdi></a></p>
]]></description><link>https://community.m5stack.com/post/850</link><guid isPermaLink="true">https://community.m5stack.com/post/850</guid><dc:creator><![CDATA[daslolo]]></dc:creator><pubDate>Tue, 17 Apr 2018 09:33:14 GMT</pubDate></item><item><title><![CDATA[Reply to How to avoid text flicker ? on Sun, 15 Apr 2018 04:11:06 GMT]]></title><description><![CDATA[<p dir="auto">You can try PrintToSprite in the TFT_eSPI library. <a href="https://github.com/Bodmer/TFT_eSPI/issues/116" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/Bodmer/TFT_eSPI/issues/116</a></p>
]]></description><link>https://community.m5stack.com/post/846</link><guid isPermaLink="true">https://community.m5stack.com/post/846</guid><dc:creator><![CDATA[daslolo]]></dc:creator><pubDate>Sun, 15 Apr 2018 04:11:06 GMT</pubDate></item><item><title><![CDATA[Reply to How to avoid text flicker ? on Sat, 14 Apr 2018 12:34:44 GMT]]></title><description><![CDATA[<p dir="auto">this is a good option as <a class="plugin-mentions-user plugin-mentions-a" href="/user/sergey_urusov" aria-label="Profile: Sergey_Urusov">@<bdi>Sergey_Urusov</bdi></a> wrote,<br />
instead rectangle you can also overwrite old value with inverted color<br />
something like this:</p>
<pre><code>#include &lt;M5Stack.h&gt;

void setup() {

  M5.begin();

  M5.Lcd.fillScreen(BLACK);
  M5.Lcd.setTextSize(7);

}

void loop(){
  static int rndold = -1;

  int rnd = random(0, 100);

  if (rnd != rndold) {
    //overwrite old value with inverted color
    M5.Lcd.setCursor(40, 40);
    M5.Lcd.setTextColor(BLACK);
    M5.Lcd.printf("%02d", rndold);
    //write new value
    M5.Lcd.setCursor(40, 40);
    M5.Lcd.setTextColor(WHITE);
    M5.Lcd.printf("%02d", rnd);
    rndold = rnd;
    delay(250);
  }
  
}
</code></pre>
]]></description><link>https://community.m5stack.com/post/844</link><guid isPermaLink="true">https://community.m5stack.com/post/844</guid><dc:creator><![CDATA[reaper7]]></dc:creator><pubDate>Sat, 14 Apr 2018 12:34:44 GMT</pubDate></item><item><title><![CDATA[Reply to How to avoid text flicker ? on Fri, 13 Apr 2018 06:26:15 GMT]]></title><description><![CDATA[<p dir="auto">Just save previous displayed value in global variable, before display compare with saved, and display only if they differs.</p>
]]></description><link>https://community.m5stack.com/post/836</link><guid isPermaLink="true">https://community.m5stack.com/post/836</guid><dc:creator><![CDATA[Sergey_Urusov]]></dc:creator><pubDate>Fri, 13 Apr 2018 06:26:15 GMT</pubDate></item></channel></rss>