This commit is contained in:
Kattni Rembor 2018-07-03 19:50:21 -04:00
parent 247abbe6e6
commit ea869be57f
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ def get_unique_pins():
exclude = ['NEOPIXEL', 'APA102_MOSI', 'APA102_SCK']
pins = [pin for pin in [
getattr(board, p) for p in dir(board) if p not in exclude]
if isinstance(pin, Pin)]
if isinstance(pin, Pin)]
unique = []
for p in pins:
if p not in unique:

View file

@ -16,7 +16,7 @@ def get_unique_pins():
exclude = ['NEOPIXEL', 'APA102_MOSI', 'APA102_SCK']
pins = [pin for pin in [
getattr(board, p) for p in dir(board) if p not in exclude]
if isinstance(pin, Pin)]
if isinstance(pin, Pin)]
unique = []
for p in pins:
if p not in unique: