Skip to main content

Results appear automatically as you type.

DIY Forum
Report

CircuitPython Example Uses a STEMMA QT Port as GPIO

Reading lead

John Park’s CircuitPython Parsec post presents a STEMMA QT connector as a way to access a board’s GPIO pins alongside power and ground, and points readers to a code example. The supplied example identifies a QT Py M0 and configures its SDA pin as an output and SCL as an input with a pull-up; it then mirrors button presses to an LED and prints press/release changes. Commented code also shows how to inspect microcontroller pin aliases. This is a practical demonstration, but the supplied material does not establish compatibility across boards or provide independent testing.

Key points

  • John Park’s CircuitPython Parsec post presents a STEMMA QT connector as a way to access a board’s GPIO pins alongside power and ground, and points readers to a code example.
  • The supplied example identifies a QT Py M0 and configures its SDA pin as an output and SCL as an input with a pull-up; it then mirrors button presses to an LED and prints press/release changes.
  • Commented code also shows how to inspect microcontroller pin aliases.
  • This is a practical demonstration, but the supplied material does not establish compatibility across boards or provide independent testing.

Article body

#circuitpythonparsec Use the STEMMA QT port on your board as a plug-and-play set of GPIO pins plus power and ground! Also, bonus code to ask the board for pin name aliases.

Try out the code example To learn about CircuitPython: https://circuitpython.org

code example · https://circuitpython.org

Source: John Park ·Adafruit Blog · 2026-10-16T18:03:00.000Z · Read the original article

Supporting method sources

Independent sources used to review the method; availability does not establish successful operation.

方法补充来源:独立读取用于方法审核,不代表已实测运行成功。

  • code.py · Read / 读取日期: 2026-10-17 · MIT

Why read this

The linked example gives a concrete CircuitPython GPIO use for a QT Py M0; evidence is limited to one board and a code demonstration, not broad compatibility or independent testing.

AI score 45 · View scoring rationale

Two-model scores assess source reading value, not factual accuracy. Check this editorial article against the original.

  1. gpt-6-luna-2026-09-22 · 47

    The linked example gives a concrete CircuitPython GPIO use for a QT Py M0; evidence is limited to one board and a code demonstration, not broad compatibility or independent testing.

  2. deepseek-flash · 44

    Small but concrete hardware-tip item: documented CircuitPython example repurposing STEMMA QT lines as GPIO on a QT Py M0, with a pin-alias snippet; scope is narrow and no independent validation is given.

Analyzed: 2026.10.17 07:11 UTC

Arranged / reviewed on Zoowai · 2026.10.17 07:14

Reviewed and arranged by Zoowai editors. Original content and views belong to the source author.

0

Comments & answers 0

Sign in, rate or reply

VISA Mastercard Maestro JCB American Express Diners Club Discover