Skip to main content

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"])
    print("accelerator", state["accelerator"])

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


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.3.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

g29py-0.0.3-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page