-
Beta Was this translation helpful? Give feedback.
Answered by
yuhan1965
Mar 20, 2024
Replies: 1 comment 6 replies
-
Nearly there. The bit you're missing is the bit where you enable these additional bits to be output electrically into the real world. The hardware doesn't know where to send these specific bits otherwise. In
|
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 -= 2ROWS_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;
}