Metadata-Version: 2.1
Name: g29py
Version: 0.0.1
Summary: python driver for g29 wheel/pedals
Author: sean pollock
Author-email: seanap@protonmail.com
Requires-Python: >=3.8,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: hid (==1.0.4)
Description-Content-Type: text/markdown

# 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

- Write.md Read.md 
- Commands based on nightmode's [logitech-g29](https://github.com/nightmode/logitech-g29) node.js driver.
- Interface uses libhidapi ctype bindings from apmorton's [pyhidapi](https://github.com/apmorton/pyhidapi).


### support

Only Logitech G29 Driving Force Racing Wheels & Pedals kit supported on linux in ps3 mode.

