Skip to content

Commit

Permalink
main.py: increased button 'debounce' time
Browse files Browse the repository at this point in the history
  • Loading branch information
thirdr committed Oct 9, 2024
1 parent 6c291a1 commit a1de0be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ def menu() -> str:
if button_x.value() == 0:
target_scroll_position -= 1
target_scroll_position = target_scroll_position if target_scroll_position >= 0 else len(applications) - 1
time.sleep(0.05)
time.sleep(0.08)

if button_y.value() == 0:
target_scroll_position += 1
target_scroll_position = target_scroll_position if target_scroll_position < len(applications) else 0
time.sleep(0.05)
time.sleep(0.08)

if button_a.value() == 0:
time.sleep(0.05)
time.sleep(0.08)

return applications[selected_item]["file"]

Expand Down

0 comments on commit a1de0be

Please sign in to comment.