Controlling GPIO pins via gamepad feedback - Raspberry Pi Forums


ok, have idea of building small vehicle can controlled via logitech f710 wireless gamepad (also functions xbox 360 gamepad).

came source: http://www.stuffaboutcode.com/2014/10/r ... ython.html


i've been unable use due lack of documentation or lack of programming experience. looks author didn't provide working code conditions. couldn't understand how form simple:

code: select all

if d pad pressed power gpio pin #22
condition.

there other way form condition in python lets me power up&down gpio pins according gamepad feedback?

nvm found awesome library: https://github.com/frc4564/xbox



trying figure out how make sit idle while not pressing buttons. keeps doing action forever press button.


raspberrypi



Comments