I like to send a rumble effect to a device using python evdev.
This should be achieved with the upload_effect()
function, which requires a buffer object as input.
This is what capabilities()
reveals:
('EV_FF', 21L): [
(['FF_EFFECT_MIN', 'FF_RUMBLE'], 80L),
('FF_PERIODIC', 81L),
(['FF_SQUARE', 'FF_WAVEFORM_MIN'], 88L),
('FF_TRIANGLE', 89L),
('FF_SINE', 90L),
('FF_GAIN', 96L),
],
How do I create that buffer?