Skip to content

09_framebuffer example uses BGR rather than RGB on latest firmware #64

@petemoore

Description

@petemoore

On previous firmware, the 09_framebuffer example worked perfectly, however, on recent firmware, it looks like RGB pixel order isn't supported for some reason, so homer appears cyan rather than yellow.

The Mailbox property interface wiki page says "The response may not be the same as the request so it must be checked." for tag 0x00048006. I added a check to test the value of mbox[24] after the mailbox call, and indeed the value returned is 0, suggesting that the pixel order option of 1 wasn't accepted. I'm not sure why.

I also tried setting all the tag request codes to 0 (mbox[4], mbox[9], mbox[14], mbox[19], mbox[23], mbox[27], mbox[32]) to see if that would help, but it didn't. I also tried changing the order of the tags, but that didn't help either.

It seems like RGB maybe isn't supported now for the given screen dimensions/colour depth etc, or maybe this is a firmware bug, I'm not sure. But the code probably should check the value of mbox[24] and if it is 0, populate the framebuffer using BGR instead of RGB.

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