

The Adafruit Metro RP2040 (Manufacturer Part ID: 5786) is a versatile microcontroller board powered by the Raspberry Pi RP2040 chip. It is designed for hobbyists, educators, and professionals who need a powerful yet easy-to-use development platform. The board features USB-C connectivity, a wide array of GPIO pins, and compatibility with the Arduino IDE, CircuitPython, and MicroPython, making it an excellent choice for a variety of projects.








The Adafruit Metro RP2040 is packed with features that make it a robust and flexible microcontroller board. Below are its key technical details:
The Adafruit Metro RP2040 features a standard pinout for easy integration into projects. Below is the pin configuration:
| Pin | Name | Description |
|---|---|---|
| 1 | 3V3 | 3.3V power output |
| 2 | GND | Ground |
| 3 | A0 (GP26) | Analog input or GPIO |
| 4 | A1 (GP27) | Analog input or GPIO |
| 5 | A2 (GP28) | Analog input or GPIO |
| 6 | SDA (GP0) | I2C data line |
| 7 | SCL (GP1) | I2C clock line |
| 8 | TX (GP4) | UART transmit |
| 9 | RX (GP5) | UART receive |
| 10 | SCK (GP18) | SPI clock line |
| 11 | MOSI (GP19) | SPI master out, slave in |
| 12 | MISO (GP16) | SPI master in, slave out |
| 13 | D13 (GP25) | Built-in LED |
| 14-21 | GPIO Pins | General-purpose input/output pins |
The Adafruit Metro RP2040 is designed to be user-friendly and compatible with multiple programming environments. Below are the steps to get started and important considerations for using the board.
Below is an example code snippet to blink the built-in LED on pin D13:
// Blink the built-in LED on the Adafruit Metro RP2040
// The LED is connected to GPIO pin 25 (D13)
void setup() {
pinMode(25, OUTPUT); // Set GPIO 25 (D13) as an output
}
void loop() {
digitalWrite(25, HIGH); // Turn the LED on
delay(1000); // Wait for 1 second
digitalWrite(25, LOW); // Turn the LED off
delay(1000); // Wait for 1 second
}
By following this documentation, users can effectively utilize the Adafruit Metro RP2040 for a wide range of projects and applications.