Skip to content

Change comment to the right image format specification.#58

Open
alias512 wants to merge 1 commit intoSeeed-Studio:masterfrom
alias512:master
Open

Change comment to the right image format specification.#58
alias512 wants to merge 1 commit intoSeeed-Studio:masterfrom
alias512:master

Conversation

@alias512
Copy link
Copy Markdown

@alias512 alias512 commented Apr 4, 2026

The documentation in the header file of the example BMP image is incorrect and misleading.

The header states:

Format: RGB565 (16-bit color)
This is incorrect. The actual encoding is 4 bits per pixel (bpp4), not 16-bit RGB565. Each byte represents two pixels, where each nibble (4 bits) corresponds to one pixel.

Example:
0x22 → first pixel = 0x2 (green), second pixel = 0x2 (green)
Additionally, the color representation is not standard RGB but uses indexed values:

0x0 = white
0x2 = green
0x6 = red
0xB = yellow
0xD = blue
0xF = black

The listed resolution (1200×1600) and the supported color set are correct, but the format description (RGB565, 16-bit) in the example BMP header file is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant