summaryrefslogtreecommitdiff
path: root/tests/extmod/ticks_diff.py
diff options
context:
space:
mode:
authorPeter Hinch <peterhinch@users.noreply.github.com>2020-02-09 16:07:39 +0000
committerDamien George <damien.p.george@gmail.com>2020-02-10 23:04:15 +1100
commit88cbfd791a06a405b05a9262e6d7ab6fb73ade57 (patch)
tree9737a9ff7aca598d9a8f8c27440a1731ac44150a /tests/extmod/ticks_diff.py
parentce40abcf21926b35da6c7255215c5062ac2be521 (diff)
docs/library: Fix framebuf monochrome 1-bit modes, swapping HLSB/HMSB.
This fix can be demonstrated by the following: 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
Diffstat (limited to 'tests/extmod/ticks_diff.py')
0 files changed, 0 insertions, 0 deletions