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?
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.
user1234
Tue, 02/25/2020 - 17:15
Permalink
The link
Just for reference, this is the code I am talking about: https://github.com/piborg/Gamepad
Thanks
piborg
Tue, 02/25/2020 - 17:55
Permalink
Adding another button
You would need to add another function like the
exitButtonPressed
orfullBeamButtonPressed
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.