跳到主要内容

输入文字后将自动检索,不需要确认。

DIY论坛
报道

CircuitPython Example Uses a STEMMA QT Port as GPIO

导读

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.

内容重点

  • 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.

正文

#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

推荐理由

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评分 45 · 查看评分依据

双模型按来源原文评估阅读价值,不判断事实真伪;本站整理正文仍应与原文核对。

  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.

分析时间:2026.10.17 07:11 UTC

0

评论与解答 0

VISA Mastercard Maestro JCB American Express Diners Club Discover