<?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[Has anyone figured out a good way to update the display quickly?]]></title><description><![CDATA[<p dir="auto">I have my display showing a constantly updating number, but this number doesn't ever get erased which makes it really hard to read after a short while.<br />
I tried setting the whole display to black before doing each number but it creates a rolling effect...</p>
]]></description><link>https://community.m5stack.com/topic/136/has-anyone-figured-out-a-good-way-to-update-the-display-quickly</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 06:01:34 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/136.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 13 Mar 2018 03:42:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Has anyone figured out a good way to update the display quickly? on Sun, 01 Apr 2018 00:31:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5dude" aria-label="Profile: m5dude">@<bdi>m5dude</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/joeybab3" aria-label="Profile: joeybab3">@<bdi>joeybab3</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/world101" aria-label="Profile: world101">@<bdi>world101</bdi></a></p>
<p dir="auto"><img src="/assets/uploads/files/1520926065233-d60dfa1c-0589-4e68-bc06-82e52d4e2106-image.png" alt="0_1520926062432_d60dfa1c-0589-4e68-bc06-82e52d4e2106-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">--<br />
The code for the counter pictured above has kindly been made available by the author at the following link:<br />
<a href="https://gist.github.com/ksasao/c67d6fff5641e6fd40c7705352f6759e" target="_blank" rel="noopener noreferrer nofollow ugc">https://gist.github.com/ksasao/c67d6fff5641e6fd40c7705352f6759e</a></p>
<p dir="auto">A required file M5Stackupdater.h is available here:  <a href="https://github.com/tobozo/M5Stack-SD-Updater/tree/master/src" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/tobozo/M5Stack-SD-Updater/tree/master/src</a></p>
<p dir="auto">--</p>
<p dir="auto">There is also a timer app in the SAM menu program available here:<br />
<a href="https://github.com/PartsandCircuits/M5Stack-SAM" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/PartsandCircuits/M5Stack-SAM</a></p>
<p dir="auto">--</p>
<p dir="auto">And a list of programming functions here:<br />
<a href="https://github.com/PartsandCircuits/M5CheatSheet" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/PartsandCircuits/M5CheatSheet</a></p>
<p dir="auto">** Should add that color command listed above.</p>
]]></description><link>https://community.m5stack.com/post/689</link><guid isPermaLink="true">https://community.m5stack.com/post/689</guid><dc:creator><![CDATA[JJ]]></dc:creator><pubDate>Sun, 01 Apr 2018 00:31:56 GMT</pubDate></item><item><title><![CDATA[Reply to Has anyone figured out a good way to update the display quickly? on Wed, 28 Mar 2018 03:26:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/world101" aria-label="Profile: world101">@<bdi>world101</bdi></a></p>
<p dir="auto">nice tip on the custom color didnt know that</p>
]]></description><link>https://community.m5stack.com/post/667</link><guid isPermaLink="true">https://community.m5stack.com/post/667</guid><dc:creator><![CDATA[m5dude]]></dc:creator><pubDate>Wed, 28 Mar 2018 03:26:09 GMT</pubDate></item><item><title><![CDATA[Reply to Has anyone figured out a good way to update the display quickly? on Tue, 27 Mar 2018 16:52:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5dude" aria-label="Profile: m5dude">@<bdi>m5dude</bdi></a></p>
<p dir="auto">Yep, or any combination of these defined colors</p>
<p dir="auto">TFT_BLACK<br />
TFT_NAVY<br />
TFT_DARKGREEN<br />
TFT_DARKCYAN<br />
TFT_MAROON<br />
TFT_PURPLE<br />
TFT_OLIVE<br />
TFT_LIGHTGREY<br />
TFT_DARKGREY<br />
TFT_BLUE<br />
TFT_GREEN<br />
TFT_CYAN<br />
TFT_RED<br />
TFT_MAGENTA<br />
TFT_YELLOW<br />
TFT_WHITE<br />
TFT_ORANGE<br />
TFT_GREENYELLOW<br />
TFT_PINK</p>
<p dir="auto">Or you can define your own color based on red, green, and blue values, like this:<br />
<code>#define MY_CUSTOM_COLOR M5.Lcd.color565(83,54,120)  /* uint16_t color565(uint8_t r, uint8_t g, uint8_t b), */</code></p>
]]></description><link>https://community.m5stack.com/post/666</link><guid isPermaLink="true">https://community.m5stack.com/post/666</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Tue, 27 Mar 2018 16:52:38 GMT</pubDate></item><item><title><![CDATA[Reply to Has anyone figured out a good way to update the display quickly? on Mon, 26 Mar 2018 18:27:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/world101" aria-label="Profile: world101">@<bdi>world101</bdi></a></p>
<p dir="auto">I agree with you. the fast(er) update is done with</p>
<p dir="auto">M5.Lcd.setTextColor(TFT_BLACK,TFT_WHITE);</p>
]]></description><link>https://community.m5stack.com/post/662</link><guid isPermaLink="true">https://community.m5stack.com/post/662</guid><dc:creator><![CDATA[m5dude]]></dc:creator><pubDate>Mon, 26 Mar 2018 18:27:02 GMT</pubDate></item><item><title><![CDATA[Reply to Has anyone figured out a good way to update the display quickly? on Mon, 19 Mar 2018 13:28:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/on4aa" aria-label="Profile: on4aa">@<bdi>on4aa</bdi></a> 在 <a href="/post/599">Has anyone figured out a good way to update the display quickly?</a> 中说：</p>
<blockquote>
<p dir="auto">If this is the case, I first clear the dynamic line with <code>\r</code> and then write the updated string. This happens much quicker than clearing all pixels of the screen.</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/on4aa" aria-label="Profile: on4aa">@<bdi>on4aa</bdi></a>, Can you please provide example code of the above?</p>
<p dir="auto">I have been experimenting with text quite a bit as well.  I first was drawing a rectangle the same color as the background approximately the same size as the text, before writing the line of text.  But I think this would have the same rolling effect as <a class="plugin-mentions-user plugin-mentions-a" href="/user/joeybab3" aria-label="Profile: joeybab3">@<bdi>joeybab3</bdi></a> was saying under fast update situations.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joeybab3" aria-label="Profile: joeybab3">@<bdi>joeybab3</bdi></a>,  another suggestion is to provide the background color while defining the text color.  Did you try that?</p>
<p dir="auto"><code>M5.Lcd.setTextColor(TFT_BLACK,TFT_WHITE);</code></p>
<p dir="auto">I have not tested this in a fast update scenario, but from the twitter video above, it looks like what he did.</p>
]]></description><link>https://community.m5stack.com/post/616</link><guid isPermaLink="true">https://community.m5stack.com/post/616</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Mon, 19 Mar 2018 13:28:52 GMT</pubDate></item><item><title><![CDATA[Reply to Has anyone figured out a good way to update the display quickly? on Thu, 15 Mar 2018 17:46:02 GMT]]></title><description><![CDATA[<p dir="auto">Personally, I have been experimenting only with smaller fonts and multiple lines of text of which only one line requires updating. If this is the case, I first clear the dynamic line with <code>\r</code> and then write the updated string. This happens much quicker than clearing all pixels of the screen.</p>
<p dir="auto">Having said that, I am surprised that <strong>I cannot reliably clock the ILI9341TFT driver chip at speeds higher than 2.6MHz,</strong> whereas the spec sheet states that clock speeds up to 10MHz should be supported. Many outside the M5Stack scene even successfully overclocked this chip in many instances.</p>
<p dir="auto">So, I am really wondering whether the M5Stack contains a <em>genuine</em> ILI9341, or is it the TFT screen itself which is really slow or what else could be wrong?</p>
]]></description><link>https://community.m5stack.com/post/599</link><guid isPermaLink="true">https://community.m5stack.com/post/599</guid><dc:creator><![CDATA[on4aa]]></dc:creator><pubDate>Thu, 15 Mar 2018 17:46:02 GMT</pubDate></item><item><title><![CDATA[Reply to Has anyone figured out a good way to update the display quickly? on Tue, 13 Mar 2018 07:29:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joeybab3" aria-label="Profile: joeybab3">@<bdi>joeybab3</bdi></a>  Hi Joey,</p>
<p dir="auto">This twitter user seems to have it working.......<br />
<a href="https://twitter.com/ksasao/status/970196248836755456" target="_blank" rel="noopener noreferrer nofollow ugc">https://twitter.com/ksasao/status/970196248836755456</a></p>
<p dir="auto"><img src="/assets/uploads/files/1520926065233-d60dfa1c-0589-4e68-bc06-82e52d4e2106-image.png" alt="0_1520926062432_d60dfa1c-0589-4e68-bc06-82e52d4e2106-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/594</link><guid isPermaLink="true">https://community.m5stack.com/post/594</guid><dc:creator><![CDATA[JJ]]></dc:creator><pubDate>Tue, 13 Mar 2018 07:29:31 GMT</pubDate></item></channel></rss>