Skip to content

Instantly share code, notes, and snippets.

View QuanyiLi's full-sized avatar
🏠
Working from home

Quanyi Li QuanyiLi

🏠
Working from home
View GitHub Profile
@damascenodiego
damascenodiego / test_ff.py
Last active April 16, 2022 03:20
Code to test the force feedback feature in steering wheel controllers (tested wth the Logitech G29)
import evdev
from evdev import ecodes, InputDevice
device = evdev.list_devices()[0]
evtdev = InputDevice(device)
val = 65535 # val \in [0,65535]
evtdev.write(ecodes.EV_FF, ecodes.FF_AUTOCENTER, val)