Pico_code icon indicating copy to clipboard operation
Pico_code copied to clipboard

Add pull-up for joystick/buttons

Open osirisinferi opened this issue 1 year ago • 1 comments

With the current demo, the joystick/button inputs are floating and will result in unreliable "flickering" of the red squares.

Pulling the GPIO pins up using Pin.PULL_UP will prevent this flickering. "Up", because looking at the schematic of the V2 version which I have, the buttons are switching to ground. Thus, requiring a pull-up resistor (built-in or not).

Also:

  • Other boards might also benefit from this, but I only checked the schematic of the 1.14" board as that's the one I have;
  • You might wanna fix the typo in the Pico_code repository, which currently is "Waveshrae Pico-OLED/LCD driver code" (notice the incorrect spelling of "Waveshare").

osirisinferi avatar Sep 04 '24 18:09 osirisinferi

I had the same issue with the flickering, and using Pin.PULL_UP fixed it for me too!

semihbkgr avatar Oct 12 '24 13:10 semihbkgr