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
#!/usr/bin/env python3 | |
# Find all the defined pins for a CircuitPython board | |
# 5 Jul 2025 - @todbot / Tod Kurt | |
# e.g. "cirpy-showpins.py qtpy_m0 ~/projects/adafruit/circuitpython" | |
# Note: you need a checkout of the CircuitPython github repo for this tool to work | |
# e.g. "mkdir -f ~/projects/adafruit && cd ~/projects/adafruit && git checkout https://github.com/adafruit/circuitpython/" | |
import os, sys, re | |
if len(sys.argv) <= 1: |
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
import sys | |
import board | |
import displayio | |
import terminalio | |
display = board.DISPLAY # or equivalent external display library | |
splash = displayio.Group() | |
fontx, fonty = terminalio.FONT.get_bounding_box() |