summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/framebuf1.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/framebuf1.py')
-rw-r--r--tests/extmod/framebuf1.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/extmod/framebuf1.py b/tests/extmod/framebuf1.py
index f550b6b4f4..52899028c7 100644
--- a/tests/extmod/framebuf1.py
+++ b/tests/extmod/framebuf1.py
@@ -23,6 +23,10 @@ fbuf.pixel(0, 15, 1)
fbuf.pixel(4, 15, 1)
print(buf)
+# clear pixel
+fbuf.pixel(4, 15, 0)
+print(buf)
+
# get pixel
print(fbuf.pixel(0, 0), fbuf.pixel(1, 1))
@@ -39,3 +43,14 @@ fbuf.scroll(-1, 0)
print(buf)
fbuf.scroll(2, 2)
print(buf)
+
+# print text
+fbuf.fill(0)
+fbuf.text("hello", 0, 0, 1)
+print(buf)
+fbuf.text("hello", 0, 0, 0) # clear
+print(buf)
+
+# char out of font range set to chr(127)
+fbuf.text(str(chr(31)), 0, 0)
+print(buf)