<?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[CoreINK screen update]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I just got my core.ink and put the <a href="https://github.com/hpsaturn/m5coreink-ntp-clock" target="_blank" rel="noopener noreferrer nofollow ugc">ntp-clock</a> to it and works fine. I added battery voltage information to the screen with code below. Then sometime the battery voltage is written on top of previous number. And it's even worse if I use clear() function. Could any one explain the proper way to draw on the screen without blink and without overwrite.</p>
<p dir="auto">thx</p>
<p dir="auto">'<br />
void drawBattery()<br />
{<br />
Serial.println("\ndrawBat");<br />
char str[50];<br />
<a href="//TimePageSprite.clear" target="_blank" rel="noopener noreferrer nofollow ugc">//TimePageSprite.clear</a>(CLEAR_DRAWBUFF | CLEAR_LASTBUFF);<br />
TimePageSprite.FillRect(10,180,90,16,0);<br />
<a href="//TimePageSprite.pushSprite" target="_blank" rel="noopener noreferrer nofollow ugc">//TimePageSprite.pushSprite</a>();<br />
TimePageSprite.FillRect(10,180,90,16,1);<br />
<a href="//TimePageSprite.pushSprite" target="_blank" rel="noopener noreferrer nofollow ugc">//TimePageSprite.pushSprite</a>();<br />
//delay(1000);</p>
<p dir="auto">sprintf(str, "Bat: %.2f V",batVol);<br />
TimePageSprite.drawString(10,180,str,&amp;AsciiFont8x16);<br />
<a href="//TimePageSprite.pushSprite" target="_blank" rel="noopener noreferrer nofollow ugc">//TimePageSprite.pushSprite</a>();<br />
}<br />
'</p>
]]></description><link>https://community.m5stack.com/topic/3210/coreink-screen-update</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 06:43:16 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3210.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Apr 2021 12:20:35 GMT</pubDate><ttl>60</ttl></channel></rss>