The PrettyPins PDF is available here.
The center of the board is home to the ATSAMD21E18 microcontroller. It is a 32-bit Cortex M0+ processor at 48 MHz with 256KB Flash and 32 KB RAM. The SAMD21 has native USB supported by every OS. It can be used in Arduino or CircuitPython as USB serial console, MIDI, Keyboard/Mouse HID, even a little disk drive for storing Python scripts.
On one end of the TRRS Trinkey is the USB connector. Plug it into any USB A port on your laptop or computer, NeoPixel-and-TRRS-jack-side-up.
On the end of the board is the TRRS jack. It is a 'switched' 3.5mm audio jack that is connected to 6 GPIO pins. That means we can not only detect when plugs are inserted but can change which pins are input, ground or even 3V power. With the use of a stereo/mic splitter, we can have up to 3 simple switches, or two analog potentiometers, or one of each.
-
Tip -
board.TIP
in CircuitPython orPIN_TIP
or0
in Arduino (the tip or T in TRRS). -
Tip Switch - This is the tip switch pin. When the plug is not inserted, this pin is connected to the tip contact. When the plug is inserted, this pin will float. It is
board.TIP_SWITCH
in CircuitPython andPIN_TIP_SWITCH
or1
in Arduino. -
Ring 1 -
board.RING_1
in CircuitPython orPIN_RING1
or2
in Arduino (the first R in TRRS). -
Ring 1 Switch - This is the ring 1 switch pin. When the plug is not inserted, this pin is connected to the right contact. When the plug is inserted, this pin will float. It is
board.RING_1_SWITCH
in CircuitPython andPIN_RING_SWITCH
or3
in Arduino. -
Ring 2 -
board.RING_2
in CircuitPython orPIN_RING2
or4
in Arduino (the second R in TRRS). -
Sleeve -
board.SLEEVE
in CircuitPython orPIN_SLEEVE
or5
in Arduino (the S in TRRS.
On the end of the board opposite the USB connector is the STEMMA QT connector. This allows you to use a STEMMA QT cable to connect up any STEMMA QT-capable sensor or breakout to quickly get started with no soldering necessary.
In CircuitPython, you can use the STEMMA connector with board.SCL
and board.SDA
, or board.STEMMA_I2C()
. In Arduino, you can use pins 9
and 8
or &Wire
.
Towards the end of the board opposite the USB connector is one RGB NeoPixel LED. It is labeled Neo on the board silk. This LED is controllable in CircuitPython using board.NeoPixel
and Arduino using PIN_NEOPIXEL
or 1
.
Towards the center of the board, above the microcontroller, is the reset button.
Tap once to reset the board. Tap twice to enter the bootloader (needed for installing CircuitPython).
Page last edited June 10, 2024
Text editor powered by tinymce.