QUERY · ISSUE
framebuf.MONO_VMSB missing
framebuf.MONO_VLSB exists.
framebuf.MONO_VMSB is missing but needed for e-paper 2.9" display
CANDIDATE · PULL REQUEST
framebuf.rst Monochrome 1 bit modes are swapped
docs
This can be demonstrated by pasting the following on a Pyboard:
b = bytearray(32)
f = framebuf.FrameBuffer(b, 32, 8, framebuf.MONO_HLSB)
f.pixel(0, 0, 1)
print('MONO_HLSB', hex(b[0]))
b = bytearray(32)
f = framebuf.FrameBuffer(b, 32, 8, framebuf.MONO_HMSB)
f.pixel(0, 0, 1)
print('MONO_HMSB', hex(b[0]))
Outcome:
MONO_HLSB 0x80
MONO_HMSB 0x1
Reference this forum thread