← index #6303PR #5626
Related · high · value 2.449
QUERY · ISSUE

framebuf.MONO_VMSB missing

openby emardopened 2020-08-03updated 2020-09-05

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

closedby peterhinchopened 2020-02-09updated 2020-04-22
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

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied