python driver for g29 wheel/pedals
Project description
g29py
python driver for logitech g29 wheel/pedals
install
pip install g29py
from g29py import G29
g29 = G29()
g29.reset() # wheel cal
# write
g29.set_range(500)
g29.set_friction(0.5)
#read
g29.start_pumping() # thread
while 1:
state = g29.get_state()
print("steering:", state["steering"])
print("brake:", state["brake"])
sources
- Commands based on nightmode's logitech-g29 node.js driver.
- Interface uses libhidapi ctype bindings from apmorton's pyhidapi.
support
Only Logitech G29 Driving Force Racing Wheels & Pedals kit supported on linux in ps3 mode.
On linux, remove sudo requirements by adding udev rule.
echo 'KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0664", GROUP="plugdev"' \
| sudo tee /etc/udev/rules.d/99-hidraw-permissions.rules
sudo udevadm control --reload-rules
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
g29py-0.0.2.tar.gz
(3.3 kB
view hashes)
Built Distribution
g29py-0.0.2-py3-none-any.whl
(3.4 kB
view hashes)