Monsterbprg ps4 code

I have run the monsterborg ps4 controller code, yet I also want to move a servo when I press the square button. on my PS4 controller. How would I do this?

Just for reference, this is the code I am talking about: https://github.com/piborg/Gamepad

Thanks

piborg's picture

You would need to add another function like the exitButtonPressed or fullBeamButtonPressed functions in the example. The button name for this new function would be 'SQUARE'.

The code needed to move your servo depends on how it is connected to the robot and what you want it to do.

Subscribe to Comments for "Monsterbprg ps4 code"