The Adafruit Circuit Playground Express (CPX) is a compact, all-in-one electronic development board that is ideal for beginners and experts alike. It is designed to provide a hands-on introduction to electronics and programming. With built-in sensors, LEDs, and buttons, the CPX is versatile enough to be used in a wide range of projects, from simple educational exercises to complex prototypes.
Pin Number | Function | Description |
---|---|---|
A1 | Analog Input | Can be used as a capacitive touch input |
A2 | Analog Input | Can be used as a capacitive touch input |
A3 | Analog Input | Can be used as a capacitive touch input |
A4 | Analog Input | Can be used as a capacitive touch input |
A5 | Analog Input | Can be used as a capacitive touch input |
A6 | Analog Input | Can be used as a capacitive touch input |
A7 | Analog Input | Can be used as a capacitive touch input |
TX | Digital Output | Transmit pin for serial communication |
RX | Digital Input | Receive pin for serial communication |
#13 | Digital I/O | Can be used for digital input/output, has LED |
#include <Adafruit_CircuitPlayground.h>
void setup() {
// Initialize the Circuit Playground board
CircuitPlayground.begin();
}
void loop() {
// Turn on the first NeoPixel with red color
CircuitPlayground.setPixelColor(0, 255, 0, 0); // Red color
delay(500); // Wait for half a second
// Turn off the first NeoPixel
CircuitPlayground.setPixelColor(0, 0, 0, 0); // No color (off)
delay(500); // Wait for half a second
}
Q: Can I use the CPX with a battery? A: Yes, the CPX can be powered with an external battery pack.
Q: Is the CPX compatible with Arduino IDE? A: Yes, with the addition of the Adafruit Board Manager URL, you can program the CPX using Arduino IDE.
Q: How do I reset the CPX? A: Press the reset button on the board. If you need to enter the bootloader mode, press it twice quickly.
Q: Can I connect other I2C or SPI devices to the CPX? A: Yes, the CPX supports I2C and SPI communication, allowing you to connect a wide range of additional sensors and components.