Skip to content

Commit

Permalink
Badge: Remove unhelpful help text.
Browse files Browse the repository at this point in the history
It's too easy to accidentally trigger this when launching an app.
  • Loading branch information
Gadgetoid committed Mar 21, 2023
1 parent c6e635b commit 34b5398
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions badger_os/examples/badge.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def draw_badge():
display.text(detail2_title, LEFT_PADDING, HEIGHT - (DETAILS_HEIGHT // 2), WIDTH, DETAILS_TEXT_SIZE)
display.text(detail2_text, LEFT_PADDING + name_length + DETAIL_SPACING, HEIGHT - (DETAILS_HEIGHT // 2), WIDTH, DETAILS_TEXT_SIZE)

display.update()

# ------------------------------
# Program setup
Expand Down Expand Up @@ -164,13 +165,5 @@ def draw_badge():
# powered *through* HALT, so latch the power back on.
display.keepalive()

if display.pressed(badger2040.BUTTON_A) or display.pressed(badger2040.BUTTON_B) or display.pressed(badger2040.BUTTON_C) or display.pressed(badger2040.BUTTON_UP) or display.pressed(badger2040.BUTTON_DOWN):
badger_os.warning(display, "To change the text, connect Badger2040 to a PC, load up Thonny, and modify badge.txt")
time.sleep(4)

draw_badge()

display.update()

# If on battery, halt the Badger to save power, it will wake up if any of the front buttons are pressed
display.halt()

0 comments on commit 34b5398

Please sign in to comment.