add LED debugging

This commit is contained in:
chrys 2017-03-20 18:37:13 +01:00
parent e24c536add
commit cd76b25878

View File

@ -5,7 +5,14 @@ from select import select
import time
iDevices = map(evdev.InputDevice, (evdev.list_devices()))
iDevices = {dev.fd: dev for dev in iDevices if 1 in dev.capabilities()}
iDevices = {dev.fd: dev for dev in iDevices if evdev.events.EV_KEY in dev.capabilities()}
for fd in iDevices:
dev = iDevices[fd]
print(dev.name,dev.leds())
return
uDevices = {}
for fd in iDevices:
dev = iDevices[fd]