summaryrefslogtreecommitdiff
path: root/tests/extmod/framebuf1.py
diff options
context:
space:
mode:
authorRadomir Dopieralski <openstack@sheep.art.pl>2016-08-28 17:44:36 +0200
committerDamien George <damien.p.george@gmail.com>2016-12-01 16:43:25 +1100
commit225e22b2877c7731b7428db0e28d3ad7e6751e35 (patch)
tree5305546fe5c8b4849ab79439517d0114201e131a /tests/extmod/framebuf1.py
parent8b8242954e3cd81fa82c24401f1eee0e516c8251 (diff)
extmod/modframebuf: Make FrameBuffer handle 16bit depth.
Rename FrameBuffer1 into FrameBuffer and make it handle different bit depths via a method table that has getpixel and setpixel. Currently supported formats are MVLSB (monochrome, vertical, LSB) and RGB565. Also add blit() and fill_rect() methods.
Diffstat (limited to 'tests/extmod/framebuf1.py')
-rw-r--r--tests/extmod/framebuf1.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/extmod/framebuf1.py b/tests/extmod/framebuf1.py
index 52899028c..836b1a9de 100644
--- a/tests/extmod/framebuf1.py
+++ b/tests/extmod/framebuf1.py
@@ -8,7 +8,7 @@ except ImportError:
w = 5
h = 16
buf = bytearray(w * h // 8)
-fbuf = framebuf.FrameBuffer1(buf, w, h, w)
+fbuf = framebuf.FrameBuffer(buf, w, h, framebuf.MVLSB)
# fill
fbuf.fill(1)