Skip to content

drive a screen with r1,g1,b1,r2,g2,b2,r3,g3,b3 #598

Answered by yuhan1965
yuhan1965 asked this question in Q&A
Discussion options

You must be logged in to vote

I put the adding sketch before the IF sentence, like below, it works.

//my adding ...
if (y_coord >= 2ROWS_PER_FRAME)
{ // if we are drawing to the bottom part of the panel
_colourbitoffset = BITS_RGB3_OFFSET;
_colourbitclear = BITMASK_RGB3_CLEAR;
y_coord -= 2
ROWS_PER_FRAME;
}

if (y_coord >= ROWS_PER_FRAME)
{ // if we are drawing to the bottom part of the panel
_colourbitoffset = BITS_RGB2_OFFSET;
_colourbitclear = BITMASK_RGB2_CLEAR;
y_coord -= ROWS_PER_FRAME;
}

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@yuhan1965
Comment options

@mrcodetastic
Comment options

@yuhan1965
Comment options

Answer selected by mrcodetastic
@mrcodetastic
Comment options

@yuhan-1965
Comment options

@harissutanrafiq
Comment options

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