<?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[display big numbers]]></title><description><![CDATA[<p dir="auto">Hi All,<br />
I'm using <a href="https://gist.githubusercontent.com/ksasao/c67d6fff5641e6fd40c7705352f6759e/raw/a781254ca429e9ee1fa72a6074c2b50d2ae34a22/drawNumber.ino" target="_blank" rel="noopener noreferrer nofollow ugc">this</a> sketch to display sensor value in four big number on M5 lcd...</p>
<p dir="auto">can someone help me to do not display the first "0"?</p>
<p dir="auto">es " 222" instead of "0222"<br />
or "  35" instead of "0035"<br />
0r "   9" instead of "0009"</p>
<p dir="auto">thanks a lot</p>
]]></description><link>https://community.m5stack.com/topic/470/display-big-numbers</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Mar 2026 01:01:37 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/470.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 Jan 2019 18:48:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to display big numbers on Thu, 03 Jan 2019 02:24:25 GMT]]></title><description><![CDATA[<p dir="auto">M5.Lcd.fillScreen(BLACK)</p>
]]></description><link>https://community.m5stack.com/post/2306</link><guid isPermaLink="true">https://community.m5stack.com/post/2306</guid><dc:creator><![CDATA[m5-docs]]></dc:creator><pubDate>Thu, 03 Jan 2019 02:24:25 GMT</pubDate></item><item><title><![CDATA[Reply to display big numbers on Thu, 03 Jan 2019 01:59:50 GMT]]></title><description><![CDATA[<p dir="auto">hello, you can test</p>
<pre><code>M5.Lcd.fillScreen(uint16_t color)
</code></pre>
<p dir="auto">to replace clear</p>
]]></description><link>https://community.m5stack.com/post/2305</link><guid isPermaLink="true">https://community.m5stack.com/post/2305</guid><dc:creator><![CDATA[heybin]]></dc:creator><pubDate>Thu, 03 Jan 2019 01:59:50 GMT</pubDate></item><item><title><![CDATA[Reply to display big numbers on Wed, 02 Jan 2019 19:05:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi, tanks a lot but since I'm displaying distance with an HC-SR04 your code doesn't work for me... because the sensor can "jump" from a distance with three digit to a distance with two digit (es from 125 cm to 80cm).... and , like you say, I can't use <code>M5.Lcd.clear(WHITE);</code> for flickering issue...<br />
what I'm looking for is to "clear" only the rectangle where the digit "was"...</p>
<p dir="auto">mumble mumble</p>
<p dir="auto">thanks a lot anyway ...</p>
]]></description><link>https://community.m5stack.com/post/2304</link><guid isPermaLink="true">https://community.m5stack.com/post/2304</guid><dc:creator><![CDATA[cepics]]></dc:creator><pubDate>Wed, 02 Jan 2019 19:05:00 GMT</pubDate></item><item><title><![CDATA[Reply to display big numbers on Tue, 01 Jan 2019 19:23:44 GMT]]></title><description><![CDATA[<p dir="auto">Ouch, that is ugly code. But if you absolutely must, replace this bit:</p>
<pre><code class="language-none">  M5.Lcd.pushRect(80*3,40,80,160,(uint16_t *)(_buf+ c0 * 80 * 160 * 2));
  M5.Lcd.pushRect(80*2,40,80,160,(uint16_t *)(_buf+ c1 * 80 * 160 * 2));
  M5.Lcd.pushRect(80*1,40,80,160,(uint16_t *)(_buf+ c2 * 80 * 160 * 2));
  M5.Lcd.pushRect(80*0,40,80,160,(uint16_t *)(_buf+ c3 * 80 * 160 * 2));
</code></pre>
<p dir="auto">with</p>
<pre><code class="language-none">  M5.Lcd.pushRect(80*3,40,80,160,(uint16_t *)(_buf+ c0 * 80 * 160 * 2));
  if (count &gt;= 10) M5.Lcd.pushRect(80*2,40,80,160,(uint16_t *)(_buf+ c1 * 80 * 160 * 2));
  if (count &gt;= 100) M5.Lcd.pushRect(80*1,40,80,160,(uint16_t *)(_buf+ c2 * 80 * 160 * 2));
  if (count &gt;= 1000) M5.Lcd.pushRect(80*0,40,80,160,(uint16_t *)(_buf+ c3 * 80 * 160 * 2));
</code></pre>
<p dir="auto">Note that this code will leave <code>9</code> digits on the display if the counter wraps around, you might need to put <code>M5.Lcd.clear(WHITE);</code> in there if you want to prevent that, but I didn't do it because it will cause flicker.</p>
<p dir="auto">Just out of curiosity: what are you trying to do here?</p>
]]></description><link>https://community.m5stack.com/post/2290</link><guid isPermaLink="true">https://community.m5stack.com/post/2290</guid><dc:creator><![CDATA[Rop]]></dc:creator><pubDate>Tue, 01 Jan 2019 19:23:44 GMT</pubDate></item></channel></rss>