summaryrefslogtreecommitdiff
path: root/wasp/demo.py
diff options
context:
space:
mode:
Diffstat (limited to 'wasp/demo.py')
-rw-r--r--wasp/demo.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/wasp/demo.py b/wasp/demo.py
index 66cc0c8..6d3f6f5 100644
--- a/wasp/demo.py
+++ b/wasp/demo.py
@@ -7,7 +7,7 @@
# len(colors) is not a multiple of 5 ;-) ).
#
-import watch, logo, time, gc, draw565
+import watch, logo, time, gc
colors = (
0xffff,
@@ -24,10 +24,9 @@ colors = (
0xf81f, # magenta
)
-draw = draw565.Draw565(watch.display)
-
def textdemo():
watch.display.fill(0)
+ draw = watch.drawable
draw.string("The quick brown", 12, 24)
draw.string("fox jumped over", 12, 48)
draw.string("the lazy dog.", 12, 72)
@@ -57,7 +56,7 @@ def run():
l = logo.pine64
watch.display.fill(0)
- watch.display.rleblit(l, fg=c)
+ watch.drawable.rleblit(l, fg=c)
time.sleep(2)
gc.collect()