diff options
author | Damien George <damien.p.george@gmail.com> | 2016-12-01 15:51:16 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-12-01 16:43:25 +1100 |
commit | 81e171b7bb38cff377ca389cd6fb179aea325998 (patch) | |
tree | 60bed405a7fca9f866adfa4d2a3cdc32828aa72d /tests/extmod/framebuf1.py | |
parent | eb09336e996a71fd58e0638035565946d74a1495 (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.py | 4 |
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) |