The Adafruit Neo Trinkey is a small form-factor development board designed for quick and easy projects. Based on the ATSAMD21 microcontroller, it is equipped with four RGB NeoPixel LEDs and a capacitive touch button. The board is designed to plug directly into a USB port for programming and power, making it an ideal choice for creating custom USB devices, lightweight decorations, or for educational purposes to teach programming and electronics.
Pin Number | Function | Description |
---|---|---|
1 | NeoPixel Data In | Controls the NeoPixel LEDs |
2 | Capacitive Touch | Senses touch input |
3 | GND | Ground connection |
4 | USB Data- | USB Data minus |
5 | USB Data+ | USB Data plus |
6 | USB Power | Power from USB (5V) |
7 | Reset | Resets the microcontroller |
Connecting to a Computer:
Programming:
Interacting with NeoPixels:
Using the Capacitive Touch:
touchRead()
function in your code.#include <Adafruit_NeoPixel.h>
#define PIN 1
#define NUMPIXELS 4
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
pixels.begin(); // Initialize the NeoPixel library.
}
void loop() {
for(int i=0; i<NUMPIXELS; i++) {
pixels.setPixelColor(i, pixels.Color(150, 0, 0)); // Moderately bright red color.
pixels.show(); // This sends the updated pixel color to the hardware.
delay(500); // Delay for half a second.
pixels.setPixelColor(i, pixels.Color(0,0,0)); // Turn off the pixel.
pixels.show();
delay(500);
}
}
Q: Can I use the Neo Trinkey with a battery? A: The Neo Trinkey is designed to be powered via USB. Using a battery would require additional circuitry.
Q: How do I update the firmware on the Neo Trinkey? A: Firmware updates can be done through the Arduino IDE or other compatible flash tools, following Adafruit's guides.
Q: Is the Neo Trinkey compatible with CircuitPython? A: Yes, the Neo Trinkey is compatible with CircuitPython, and Adafruit provides resources for using CircuitPython with the board.