Created
February 10, 2023 14:01
-
-
Save initdc/b92fb774ba46ee5d812519de4d986aef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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