Skip to content

"Yellow" bitmap images #6

@Cyb3rn0id

Description

@Cyb3rn0id

I'm trying to display Bitmaps on the Raspberry Pi Pico using the Waveshare display (https://www.waveshare.com/wiki/Pico-LCD-1.14).
I convert a 240x135 image to BMP (24 bits) and then I convert it using imgtobitmap.py.
Image appears always yellowish: I mean image looks like the BLUE is missing.
I edited the library (st7789py.py) at row 803, maybe it would be

buffer[i + 1] = color & 0xff

instead of

buffer[i + 1] = color_index & 0xff

?

Anyway images still not looks good, even if I chose the maximum value for Bit x Pixel (5, values greater than 5 causes a memory error in Thonny since the generated file is too large).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions