Skip to content

Instantly share code, notes, and snippets.

@initdc
Created February 10, 2023 14:01
Show Gist options
  • Select an option

  • Save initdc/b92fb774ba46ee5d812519de4d986aef to your computer and use it in GitHub Desktop.

Select an option

Save initdc/b92fb774ba46ee5d812519de4d986aef to your computer and use it in GitHub Desktop.
from machine import Pin
for i in range(0, 41):
try:
pin = Pin(i)
print("%s: " % pin, pin.value())
except ValueError:
print("Invalid pin:", i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment