Core.INK display refresh
-
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();}
' -
Are you making sure to leave a 15 second pause between refreshes?
-
I faced common issue with core grey module, made a couple of titles and was feeding formatted data from light sensor and envII module. Had to spend some time playing with delays to make it work properly but was blaming raped micropython build.
Long things short, don't try to understand it, try adding delays.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login