1

I have tried all the ways I can find to detect keypresses in python on Raspberry Pi 3 but I can't get any to work. - I want it to be that when I press Up Arrow my Raspberry Pi robot will move forwards. Thanks

Edit - I known this seems like a duplicate as others but others were for windows or Linux, which worked on those platforms because it tried but it didn't work on raspberry pi.

Sam Harris
  • 21
  • 1
  • 7

1 Answers1

0

You can use Pygame to detect key presses (see this post for more guidance) and then set the program to run on start up when you want to test the program(see this post for more guidance) . alternatively you could use SSH into the RPi if it is a on a network and run the script

AlexanderRD
  • 2,069
  • 2
  • 11
  • 19