CircuitPython Digital In & Out — image 1 of 1

circuitpython_QT_Py_Essentials_Digital_In_Out_bb.jpg
details

QT Py M0

D2 is labeled A2, shown connected to the blue wire, and is near the USB port between A1 and A3.

There is no little red LED built-in to the QT Py M0. Therefore, you must connect an external LED for this example to work.

To wire up an external LED:

  • LED + to QT Py SCK
  • LED - to 470Ω resistor
  • 470Ω resistor to QT Py GND

The button and the LED share the same GND pin.

To use the external LED, comment out the current LED setup line, and uncomment the line labeled for QT Py M0. See the details above!

Back

Search