summaryrefslogtreecommitdiff
path: root/wasp/demo.py
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-01-29 17:30:57 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-01-29 17:30:57 (GMT)
commitd3d98c8ffb1feded5b77c34f67aa1f2b4ae19a2e (patch)
tree369153700d5a304366180844c5a1eff13a20521e /wasp/demo.py
parent564200757cce485ba9cb7b12d25c5c98b3fe6e26 (diff)
wasp: Re-enable REPL by default
The demo is still there but it needs to be activated by hand (or the manifest can be updated to include main.py by default.
Diffstat (limited to 'wasp/demo.py')
-rw-r--r--wasp/demo.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/wasp/demo.py b/wasp/demo.py
index 1470ff5..b74d3e6 100644
--- a/wasp/demo.py
+++ b/wasp/demo.py
@@ -24,10 +24,6 @@ colors = (
0xf81f, # magenta
)
-# Let's keep this where we can find it if someone delivers ^C to the
-# demo
-tft = pinetime.st7789()
-
def run():
l = logo.pine64
i = 0
@@ -42,8 +38,8 @@ def run():
l = logo.micropython
else:
l = logo.pine64
- tft.fill(0)
+ pinetime.display.fill(0)
- tft.rleblit(l, fg=c)
+ pinetime.display.rleblit(l, fg=c)
time.sleep(2)
gc.collect()