summaryrefslogtreecommitdiff
path: root/wasp/boot.py
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-02-01 20:20:30 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-02-01 20:20:30 (GMT)
commitc7e11d60205a50e3f63344cc327be1930ff2f7d3 (patch)
tree87810fd26a06d3eb31bb54477f3aef6884fefdea /wasp/boot.py
parent9eb5d19e35304fb9082babf2a485942b887cad4f (diff)
wasp: Adopt a low power mode shortly after booting
This is useful for battery run-down testing and so on.
Diffstat (limited to 'wasp/boot.py')
-rw-r--r--wasp/boot.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/wasp/boot.py b/wasp/boot.py
index 08d5c12..49ff56b 100644
--- a/wasp/boot.py
+++ b/wasp/boot.py
@@ -1,6 +1,10 @@
import logo
import watch
+import time
+# Splash screen
watch.display.rleblit(logo.pine64, fg=0xffff)
-
+time.sleep(5)
+watch.backlight.set(0)
+watch.display.poweroff()