Skip to content

blinking drawXXX Elements #1668

Answered by v1993
Devilscave asked this question in Q&A
Nov 7, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Page loop is called multiple times during frame drawing. You want to toggle things outside of it, something like

// Before page loop
shine = !shine;

// Inside page loop
if (shine)
    u8g2.drawDisk(20, 25, 2, U8G2_DRAW_ALL);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Devilscave
Comment options

Answer selected by Devilscave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants