Skip to content
Discussion options

You must be logged in to vote

Solved this one, character code 218 is a full block, write in black and it removes any previous characters.

Code snippet that works with the colorwheel example -

`// write character array 'text' to dislay at xpos, ypos
// clears characters before writing

dma_display->setCursor(xpos, ypos); // set cursor position
dma_display->setTextColor(myBLACK); // change colour to black
for (uint8_t x = 0; x < strlen(text); x++)
{
dma_display->print((char)218); // write black block to display
}
dma_display->setCursor(xpos, ypos); // set cursor position again
for (uint8_t x = 0; x < strlen(text); x++)
{ // draw characters using colorWheel
dma_display->setTextColor(colorWheel((color*32)+offset));
dma_dis…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by PaulM47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants