Fix all the stuff you broke last night...

In particular the `pi_revision` thing in PiGPIOPin, all the stuff @lurch
picked up in `pins/data.py` (thank goodness *someone's* watching!), and
make all those links pointing to "Notes" point somewhere useful like
"Pin Numbering"...
This commit is contained in:
Dave Jones
2016-08-30 15:16:15 +01:00
parent bb8ea5249d
commit 6f67a973cf
6 changed files with 45 additions and 32 deletions

View File

@@ -12,9 +12,9 @@ devices = [InputDevice(device) for device in list_devices()]
must_have = {i for i in range(1, 32)}
must_not_have = {0}
devices = [
device
for device in devices
for keys in (set(device.capabilities().get(ecodes.EV_KEY, [])),)
dev
for dev in devices
for keys in (set(dev.capabilities().get(ecodes.EV_KEY, [])),)
if must_have.issubset(keys)
and must_not_have.isdisjoint(keys)
]