mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
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:
@@ -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)
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user