Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GPIO pins to RaspPi
#1
I am currently trying to program a simple pong game using pygame and thus far I have used pygame.KEYUP and pygame.KEYDOWN to control the game. I have a joystick that connects to the raspberry pi with GPIO pins and I am not sure how to program the game to use the joystick instead of the keyup and keydown controls. I cannot for the life of me figure out the imput commands to get the gpio pins to work with the joystick. Any help would be greatly appreciated.
Reply


Messages In This Thread
GPIO pins to RaspPi - by mmagner2022 - Oct-26-2021, 05:30 PM
RE: GPIO pins to RaspPi - by joe_momma - Oct-26-2021, 07:44 PM
RE: GPIO pins to RaspPi - by mmagner2022 - Oct-26-2021, 08:37 PM
RE: GPIO pins to RaspPi - by metulburr - Oct-26-2021, 09:07 PM
RE: GPIO pins to RaspPi - by joe_momma - Oct-27-2021, 06:36 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020