Hello,
I just got my core.ink. I install the NTP-Clock which can refresh the display without any blink. I added a battery sensor the display with code below. the problem I have is some the number is written on top of previous number and make the number not readable. I tried clear the buffer and it make the display even worse that the time number is not readable.
Could you some point out what is the proper way to write to the display?
thx
'
void drawBattery()
{
Serial.println("\ndrawBat");
char str[50];
//TimePageSprite.clear(CLEAR_DRAWBUFF | CLEAR_LASTBUFF);
TimePageSprite.FillRect(10,180,90,16,0);
//TimePageSprite.pushSprite();
TimePageSprite.FillRect(10,180,90,16,1);
//TimePageSprite.pushSprite();
//delay(1000);
sprintf(str, "Bat: %.2f V",batVol);
TimePageSprite.drawString(10,180,str,&AsciiFont8x16);
//TimePageSprite.pushSprite();
}
'