framebuf ValueError: problem #19901
Answered
by
GitHubsSilverBullet
ctimmer
asked this question in
RP2040 / Pico
|
I don't know why I'm get a ValueError with the code below. The bytearray should be large enough. It works if I set byte buf_len to at least 350. Environment: Output: Code: |
Answered by
GitHubsSilverBullet
Nov 6, 2026
Replies: 1 comment 1 reply
|
|
1 reply
Answer selected by
ctimmer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
byte_buf_len = ceil(WIDTH * PIXEL_BITS / 8) * HEIGHTWIDTH * PIXEL_BITS must be divisible by 8.