summaryrefslogtreecommitdiff
path: root/tests/extmod/framebuf1.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-12-01 15:51:16 +1100
committerDamien George <damien.p.george@gmail.com>2016-12-01 16:43:25 +1100
commit81e171b7bb38cff377ca389cd6fb179aea325998 (patch)
tree60bed405a7fca9f866adfa4d2a3cdc32828aa72d /tests/extmod/framebuf1.py
parenteb09336e996a71fd58e0638035565946d74a1495 (diff)
extmod/modframebuf: Add back legacy FrameBuffer1 "class".
For backwards compatibility. It simple creates a frame buffer with the MVLSB format.
Diffstat (limited to 'tests/extmod/framebuf1.py')
-rw-r--r--tests/extmod/framebuf1.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/extmod/framebuf1.py b/tests/extmod/framebuf1.py
index 836b1a9de..7faad7181 100644
--- a/tests/extmod/framebuf1.py
+++ b/tests/extmod/framebuf1.py
@@ -54,3 +54,7 @@ print(buf)
# char out of font range set to chr(127)
fbuf.text(str(chr(31)), 0, 0)
print(buf)
+
+# test legacy constructor
+fbuf = framebuf.FrameBuffer1(buf, w, h)
+fbuf = framebuf.FrameBuffer1(buf, w, h, w)