Skip to content

Commit

Permalink
Press encoder to skip intro
Browse files Browse the repository at this point in the history
  • Loading branch information
Ancient123 committed Aug 3, 2023
1 parent 7c6ae4c commit 975e027
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Software/Testing/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,10 @@ def update(self, machine):
else:
time.sleep(0.1)
machine.go_to_state("menu")
# Skip to menu if encoder is pressed
enc_buttons_event = enc_buttons.events.get()
if enc_buttons_event and enc_buttons_event.pressed:
machine.go_to_state("menu")


class MenuState(State):
Expand Down

0 comments on commit 975e027

Please sign in to comment.