entries = [getattr(pin, key) for key in dir(pin)]
# is this filter line needed? any other types valid in pin module?
entries = list(filter(lambda val: type(val) is microcontroller.Pin, entries))
entries = [getattr(pin, key) for key in dir(pin)]
# is this filter line needed? any other types valid in pin module?
entries = list(filter(lambda val: type(val) is microcontroller.Pin, entries))