summaryrefslogtreecommitdiff
path: root/tests/extmod/framebuf8.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/framebuf8.py')
-rw-r--r--tests/extmod/framebuf8.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/extmod/framebuf8.py b/tests/extmod/framebuf8.py
index b6899aae9..a3ca6fcd4 100644
--- a/tests/extmod/framebuf8.py
+++ b/tests/extmod/framebuf8.py
@@ -4,14 +4,16 @@ except ImportError:
print("SKIP")
raise SystemExit
+
def printbuf():
print("--8<--")
for y in range(h):
for x in range(w):
- print('%02x' % buf[(x + y * w)], end='')
+ print("%02x" % buf[(x + y * w)], end="")
print()
print("-->8--")
+
w = 8
h = 5
buf = bytearray(w * h)
@@ -25,7 +27,7 @@ printbuf()
fbuf.pixel(0, 0, 0x11)
fbuf.pixel(w - 1, 0, 0x22)
fbuf.pixel(0, h - 1, 0x33)
-fbuf.pixel(w - 1, h - 1, 0xff)
+fbuf.pixel(w - 1, h - 1, 0xFF)
printbuf()
# get pixel