From 8ccfdaf5bd244232e9a842e8e70c98fb021f2203 Mon Sep 17 00:00:00 2001 From: Zak Zebrowski Date: Sat, 12 Mar 2022 13:13:44 -0500 Subject: [PATCH] Badger2040: Add sleep to help and info --- micropython/examples/badger2040/help.py | 3 +++ micropython/examples/badger2040/info.py | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/micropython/examples/badger2040/help.py b/micropython/examples/badger2040/help.py index aabf3f7f..ff6102be 100644 --- a/micropython/examples/badger2040/help.py +++ b/micropython/examples/badger2040/help.py @@ -1,4 +1,5 @@ import badger2040 +import time from badger2040 import WIDTH TEXT_SIZE = 0.45 @@ -35,3 +36,5 @@ display.text("a - Toggle invert", 0, y, TEXT_SIZE) y += LINE_HEIGHT display.update() +while True: + time.sleep(1) diff --git a/micropython/examples/badger2040/info.py b/micropython/examples/badger2040/info.py index 8dd5b343..94c3b1af 100644 --- a/micropython/examples/badger2040/info.py +++ b/micropython/examples/badger2040/info.py @@ -1,4 +1,5 @@ import badger2040 +import time from badger2040 import WIDTH TEXT_SIZE = 0.45 @@ -32,3 +33,6 @@ y += LINE_HEIGHT display.text("https://pimoroni.com/badger2040", 0, y, TEXT_SIZE) display.update() + +while True: + time.sleep(1)