diff options
author | Peter Hinch <peter@hinch.me.uk> | 2017-04-01 07:00:09 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-04-04 17:38:33 +1000 |
commit | 468c6f9da147d6e752e437a32211e317a116b6df (patch) | |
tree | a719f6e6a2b97d3ab23d59b6aa3c35e472a86790 /tests/extmod/framebuf1.py | |
parent | fc245d1ca4367f9876ac32c7e08e169da7db79b9 (diff) | |
download | micropython-468c6f9da147d6e752e437a32211e317a116b6df.tar.gz micropython-468c6f9da147d6e752e437a32211e317a116b6df.zip |
extmod/modframebuf: Make monochrome bitmap formats start with MONO_.
MONO_xxx is much easier to read if you're not familiar with the code.
MVLSB is deprecated but kept for backwards compatibility, for the time
being.
This patch also updates the associated docs and tests.
Diffstat (limited to 'tests/extmod/framebuf1.py')
-rw-r--r-- | tests/extmod/framebuf1.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/extmod/framebuf1.py b/tests/extmod/framebuf1.py index 0a8e1ae550..990b0b120d 100644 --- a/tests/extmod/framebuf1.py +++ b/tests/extmod/framebuf1.py @@ -9,9 +9,9 @@ w = 5 h = 16 size = w * h // 8 buf = bytearray(size) -maps = {framebuf.MVLSB : 'MVLSB', - framebuf.MHLSB : 'MHLSB', - framebuf.MHMSB : 'MHMSB'} +maps = {framebuf.MONO_VLSB : 'MONO_VLSB', + framebuf.MONO_HLSB : 'MONO_HLSB', + framebuf.MONO_HMSB : 'MONO_HMSB'} for mapping in maps.keys(): for x in range(size): @@ -107,3 +107,4 @@ except ValueError: # test legacy constructor fbuf = framebuf.FrameBuffer1(buf, w, h) fbuf = framebuf.FrameBuffer1(buf, w, h, w) +print(framebuf.MVLSB == framebuf.MONO_VLSB) |