You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With jstest i get for the potentiometer values for L2, R2, L3 & R3 value up to 32k.
But with Python and the pyPS4Controller package received only static values in lower range.
The value ist randomly changed with every restart or connect.
I installed the latest version with pip install pyps4controller and pip3 install pyps4controller
root@pi:/tmp# python3 test.py
Waiting for interface: /dev/input/js0 to become available . . .
Successfully bound to: /dev/input/js0.
on_R3_up: 76
on_R3_up: 76
...
on_R3_y_at_rest
on_L3_right: 76
on_L3_right: 76
on_L3_x_at_rest
on_R3_left: 76
on_R3_left: 76
on_R3_left: 76
...
on_R3_left: 76
on_R3_left: 76
on_R3_x_at_rest
on_R2_press: 76
on_R2_press: 76
...
Thats my code.
from pyPS4Controller.controller import Controller
class MyController(Controller):
def __init__(self, **kwargs):
Controller.__init__(self, **kwargs)
controller = MyController(interface="/dev/input/js0", connecting_using_ds4drv=False)
controller.listen()
The text was updated successfully, but these errors were encountered:
The PS4-Controller is connected via bluetooth to my raspberry pi and it works fine
I tested the controller with the following command.
With
jstest
i get for the potentiometer values for L2, R2, L3 & R3 value up to 32k.But with Python and the pyPS4Controller package received only static values in lower range.
The value ist randomly changed with every restart or connect.
I installed the latest version with
pip install pyps4controller
andpip3 install pyps4controller
Thats my code.
The text was updated successfully, but these errors were encountered: