Skip to content

Commit

Permalink
Pico Display 2.x: Fixed button function
Browse files Browse the repository at this point in the history
  • Loading branch information
thirdr committed Sep 26, 2024
1 parent 871399a commit 61ca10e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions micropython/examples/pico_display/scroll_menu_h.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
from pimoroni import RGBLED
from machine import Pin

button_a = Pin(12, Pin.IN)
button_b = Pin(13, Pin.IN)
button_x = Pin(14, Pin.IN)
button_y = Pin(15, Pin.IN)
button_a = Pin(12, Pin.IN, Pin.PULL_UP)
button_b = Pin(13, Pin.IN, Pin.PULL_UP)
button_x = Pin(14, Pin.IN, Pin.PULL_UP)
button_y = Pin(15, Pin.IN, Pin.PULL_UP)

display = PicoGraphics(display=DISPLAY_PICO_DISPLAY_2, pen_type=PEN_RGB565, rotate=0)
display.set_backlight(0.8)
Expand Down
8 changes: 4 additions & 4 deletions micropython/examples/pico_display/scroll_menu_v.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
from pimoroni import RGBLED
from machine import Pin

button_a = Pin(12, Pin.IN)
button_b = Pin(13, Pin.IN)
button_x = Pin(14, Pin.IN)
button_y = Pin(15, Pin.IN)
button_a = Pin(12, Pin.IN, Pin.PULL_UP)
button_b = Pin(13, Pin.IN, Pin.PULL_UP)
button_x = Pin(14, Pin.IN, Pin.PULL_UP)
button_y = Pin(15, Pin.IN, Pin.PULL_UP)

display = PicoGraphics(display=DISPLAY_PICO_DISPLAY_2, pen_type=PEN_RGB565, rotate=0)
display.set_backlight(0.8)
Expand Down

0 comments on commit 61ca10e

Please sign in to comment.