kann mir niemand helfen? Hier mal schritt für schritt wie ich es in der
Kommandozeile eingebe:
pi@raspberrypi:~ $ sudo chmod +0666 /dev/uinput
pi@raspberrypi:~ $ python
Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import evdev>>> from evdev import UInput, AbsInfo, ecodes as e>>> cap = {e.EV_KEY : [e.KEY_A, e.KEY_B],e.EV_ABS : [(e.ABS_X,
... AbsInfo(value=0, min=0, max=255, fuzz=0, flat=0,
... resolution=0)),(e.ABS_Y, AbsInfo(0, 0, 255, 0, 0,
... 0)),(e.ABS_MT_POSITION_X, (0, 255, 128, 0)) ]}
>>> ui = UInput(cap, name='example-device', version=0x3)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/evdev/uinput.py", line
136, in _init_
_uinput.create(self.fd, name, vendor, product, version, bustype,
absinfo)
IOError: [Errno 22] Invalid argument
was ist hier invalid???