The direction of framebuf.MONO_HLSB
Posted: Sat Feb 01, 2020 6:31 am
In the document of framebuf.MONO_HLSB says

If the bit 0 is leftmost one, the bytearray should be
But this would make the image flip horizontally.Am I right or I misunderstand the document?
But it seems to be wrong. Let's take the 8x8 image show bellow for exampleMonochrome (1-bit) color format This defines a mapping where the bits in a byte are horizontally mapped. Each byte occupies 8 horizontal pixels with bit 0 being the leftmost.

If the bit 0 is leftmost one, the bytearray should be
Code: Select all
[0b10001001,
0b00001001,
0b00001001,
0b00001001.
0b00001001.
0b00000001,
0b00000001,
0b00000001]