Quick answer: RP2040-Zero pinout, seen from the button side with the USB-C port up.
- Left edge, top to bottom: 5V, GND, 3V3, GP29, GP28, GP27, GP26, GP15, GP14
- Right edge, top to bottom: GP0 to GP8
- Bottom edge, left to right: GP13, GP12, GP11, GP10, GP9
The RGB LED is a WS2812 on GP16. Every GP pin is 3.3 V only.
To program it in the Arduino IDE:
- Add the Philhower boards URL (see the steps below) in Preferences and install “Raspberry Pi Pico/RP2040/RP2350” in Boards Manager.
- Pick Tools > Board > Waveshare RP2040 Zero.
- Hold BOOT, plug in the USB cable, let go. A drive named RPI-RP2 appears. No driver needed.
- If Tools > Port lists UF2 Board, choose it. Press Upload. After the first sketch you do not need the button again.
RP2040-Zero pinout
The RP2040-Zero has header pins on three edges (both long edges and the bottom). This table follows Waveshare’s pinout drawing, seen from the top (the side with the buttons) with the USB-C port up. The board prints only the number, so 29 means GP29.
| Row from the USB-C end | Left edge | Right edge |
|---|---|---|
| 1 | 5V | GP0 |
| 2 | GND | GP1 |
| 3 | 3V3 | GP2 |
| 4 | GP29 | GP3 |
| 5 | GP28 | GP4 |
| 6 | GP27 | GP5 |
| 7 | GP26 | GP6 |
| 8 | GP15 | GP7 |
| 9 | GP14 | GP8 |
| Bottom edge, left to right | GP13, GP12, GP11, GP10, GP9 | |
| Not on a header pin | GP16 drives the onboard WS2812 RGB LED. GP17 to GP25 are small solder pads on the back of the board. | |
Careful when you flip the board. The labels are printed on the top face and the pins point down. Turn the board over to push jumpers on, and left and right swap: 5V now sits where you expect GP0. Find the pin by its label from the top first.
A pin is known by its GP number, wherever it sits. A sketch written with GP numbers runs the same on a Pico or a Zero.
| Label on the Zero | What it is |
|---|---|
| 5V | Power straight from the USB cable. An output for feeding 5 V parts, never a signal pin |
| 3V3 | The onboard regulator’s 3.3 V output, the rail the chip itself runs on |
| GND | Common ground for everything on the desk |
| GP0–GP15 | Digital I/O; UART, SPI, I2C and PWM can each be mapped onto them |
| GP26–GP29 | Digital I/O that double as analog inputs ADC0–ADC3 |
| GP16 | Not on the headers. It drives the onboard WS2812 RGB LED |
| GP17–GP25 | Not on the headers. Small solder pads on the back of the board, for soldered wires rather than jumpers |
The RP2040’s pins are not 5 V tolerant. Use the 5V pin only to power 5 V parts, never as a signal into a GP pin.
Arduino default pins on the RP2040-Zero
With the board set to Waveshare RP2040 Zero, the Arduino core uses these pins unless your sketch picks others (source: the core’s pin file).
| Arduino name | Default pins |
|---|---|
| I2C (Wire) | SDA GP4, SCL GP5 |
| I2C (Wire1) | SDA GP26, SCL GP27 |
| Serial1 | TX GP0, RX GP1 |
| Serial2 | TX GP8, RX GP9 |
| SPI | SCK GP2, MOSI GP3, MISO GP4, SS GP5 |
| SPI1 | SCK GP14, MOSI GP15, MISO GP12, SS GP13 |
| A0 to A3 | GP26 to GP29 |
| PIN_NEOPIXEL | GP16 (the onboard RGB LED) |
| LED_BUILTIN | Not defined. The board has no plain LED |
Pico, Zero or Tiny: what changes
The Raspberry Pi Pico, the RP2040-Zero and the RP2040-Tiny share the RP2040 chip and the same Arduino core. What changes is which pins each board brings out, and its onboard LED.
This guide uses the RP2040-Zero, which we stock with header pins already soldered.
The Raspberry Pi Pico is the 40-pin board most online diagrams show (official Pico pinout). It ships with bare pads, so start with our header-soldering guide.
The RP2040-Tiny is a solder-in module with its USB-C port and buttons on a separate adapter board. It suits a finished project more than a first sketch.
| What changes | Raspberry Pi Pico | RP2040-Zero |
|---|---|---|
| Chip and memory | RP2040, dual-core Cortex-M0+ at 133 MHz, 264 KB RAM, 2 MB flash | The same |
| Onboard LED | Plain LED on GP25 | WS2812 RGB LED on GP16 |
| GPIO on the headers | GP0–GP22 and GP26–GP28 | GP0–GP15 and GP26–GP29 |
| RUN (reset) | Physical pin 30 | No RUN header pin. The RESET button is wired to RUN |
| Header pins | Bare pads, solder your own | Already soldered |
| Default I2C in the Arduino IDE | SDA GP4, SCL GP5 | SDA GP4, SCL GP5 |
Parts list: the board, the display, and the cable and jumpers that join them
Parts list
The breadboard and male-to-male jumpers suit a Raspberry Pi Pico with headers soldered. It plugs into a 400-hole breadboard and takes the same four OLED connections. Keep the RP2040-Zero off the breadboard, because its bottom row of pins crosses the centre gap.
Set up the Arduino IDE for the RP2040
These steps use the RP2040-Zero. For a Pico, pick Raspberry Pi Pico in step 3.
- Open File > Preferences and paste this into Additional boards manager URLs:
https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json - In Boards Manager, search “pico” and install Raspberry Pi Pico/RP2040/RP2350 by Earle F. Philhower, III.
- Pick Tools > Board > Waveshare RP2040 Zero. Use this exact entry.
- Hold BOOT, plug in the USB cable, then let go. A drive named RPI-RP2 appears (USB device name: RP2 Boot).
- If Tools > Port lists UF2 Board, choose it.
- Open the RGB blink sketch below and press Upload. The board restarts and runs it.
No driver is needed. In BOOT mode the RP2040 runs a bootloader built into the chip’s ROM and shows up as an ordinary USB flash drive. (An ESP32’s USB bridge chip can need one, see our “board not detected” guide.)
You need BOOT only once. Each sketch adds a USB serial port that the IDE uses for later uploads, so pick the new port under Tools > Port. The ROM cannot be overwritten, so a bad sketch cannot brick the board: hold BOOT, tap RESET, release BOOT, and RPI-RP2 is back.
Check the cable. A charge-only USB cable has no data wires, so the drive never appears. The cable in the parts list is a data cable.

Why does Blink fail on the RP2040-Zero?
Compile the Blink example for the RP2040-Zero and the IDE stops with error: 'LED_BUILTIN' was not declared in this scope. The core’s pin file for the Zero defines no LED_BUILTIN because the board has no plain LED.
If you pick “Raspberry Pi Pico” instead, Blink uploads but nothing blinks. That entry drives GP25, which on a Zero is a small solder pad on the back with no LED.
The Zero has no power LED either, so a new board can stay dark. To check it, hold BOOT while plugging in and look for the RPI-RP2 drive.
The Zero’s light is a WS2812 RGB LED on GP16. It takes colour data as timed pulses, so a steady HIGH from digitalWrite() does nothing. Install the Adafruit NeoPixel library from Library Manager, then upload this:
// First blink on the RP2040-Zero. The onboard "LED" is a WS2812 RGB pixel
// on GP16, so it is driven with DATA, not with a HIGH/LOW level.
#include <Adafruit_NeoPixel.h>
// PIN_NEOPIXEL comes from the board's own pin file and equals 16 here.
Adafruit_NeoPixel led(1, PIN_NEOPIXEL, NEO_GRB + NEO_KHZ800);
void setup() {
led.begin();
led.setBrightness(40); // full brightness at desk distance is uncomfortable
}
void loop() {
led.setPixelColor(0, led.Color(0, 150, 0)); // green
led.show();
delay(500);
led.setPixelColor(0, 0); // off
led.show();
delay(500);
}
Our WS2812 guide covers strips and rings.

Wire the OLED to GP4 and GP5
The RP2040-Zero and the 0.96-inch OLED both have male pins, so four female-to-female jumpers join them with no soldering (jumper types explained). Do not press the Zero into a breadboard: its bottom row of pins lands across the centre gap.
Read the OLED’s header before power goes on. It runs GND VCC SCL SDA, ground first, the reverse of many hobby modules. Wired by habit, power goes in backwards and can damage the display. Find each Zero pin by its top-face label before you flip the board.
| OLED pin | RP2040-Zero pin | Why |
|---|---|---|
| GND | GND | Shared reference for the bus |
| VCC | 3V3 | The SSD1306 runs happily from 3.3 V, and its bus levels then match the chip’s |
| SCL | GP5 | GP5 sits in the chip’s I2C0 clock group |
| SDA | GP4 | GP4 sits in the chip’s I2C0 data group |
GP4 and GP5 are the core’s default I2C pins, and the sketch sets them with Wire.setSDA(4) and Wire.setSCL(5). (I2C0 can use every fourth pin from GP0 for SDA and from GP1 for SCL.) The display’s SSD1306 controller answers at address 0x3C. Install Adafruit SSD1306 from Library Manager and accept its Adafruit GFX dependency.
// RP2040-Zero + 0.96in SSD1306 OLED over I2C0: live chip-temperature readout.
// Wiring: OLED GND -> Zero GND, VCC -> 3V3, SCL -> GP5, SDA -> GP4.
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
void setup() {
// Say the pins out loud rather than trusting a default: GP4 sits in the
// chip's I2C0-SDA group and GP5 in its I2C0-SCL group.
Wire.setSDA(4);
Wire.setSCL(5);
oled.begin(SSD1306_SWITCHCAPVCC, 0x3C); // this module answers at 0x3C
oled.setTextColor(SSD1306_WHITE);
}
void loop() {
float t = analogReadTemp(); // RP2040's own on-chip sensor, in Celsius
oled.clearDisplay();
oled.setTextSize(1);
oled.setCursor(0, 0);
oled.print("RP2040 core temp");
oled.setTextSize(3);
oled.setCursor(0, 24);
oled.print(t, 1);
oled.setTextSize(2);
oled.print(" C");
oled.display();
delay(1000);
}
The screen shows the chip’s own temperature, using the RP2040 datasheet formula 27 − (V − 0.706) / 0.001721. For a menu on the same display, see our rotary encoder menu guide.

If it does not work
Find what your RP2040-Zero or the Arduino IDE shows.
- No RPI-RP2 drive. The cable is charge-only, or BOOT was not held while plugging in. Use a data cable, then hold BOOT and tap RESET.
- No COM port, or on Linux
ls: cannot access '/dev/ttyACM*': No such file or directory. Normal in BOOT mode and on a blank board. The port appears after the first sketch runs. error: 'LED_BUILTIN' was not declared in this scope. The Zero has no plain LED. Use the NeoPixel sketch above.- It does not light up. A new Zero can stay dark because it has no power LED. If Blink uploaded and nothing lights, the board menu is on Raspberry Pi Pico, which drives GP25. Pick Waveshare RP2040 Zero and use the NeoPixel sketch.
a function-definition is not allowed here before '{' token. The sketch was pasted inside another function, or a closing brace}is missing. Clear the editor and paste the whole sketch.- The OLED stays blank. Check the header order (GND VCC SCL SDA), then VCC to 3V3, SDA to GP4, SCL to GP5 and address
0x3C. - A 5 V signal on a GP pin. The pins are 3.3 V only. Divide the signal down to 3.3 V first.
FAQ
Which pin is the LED on the RP2040-Zero?
GP16. It is a WS2812 RGB LED, so it needs a NeoPixel-type library and ignores digitalWrite(). The Arduino core names the pin PIN_NEOPIXEL and defines no LED_BUILTIN.
Where is the RUN pin on the RP2040-Zero?
The RP2040-Zero has no RUN header pin. Its RESET button is wired to the chip’s RUN line, so press RESET to restart the board. On a Raspberry Pi Pico, RUN is physical pin 30.
Are the RP2040’s pins 5V tolerant?
No. All GPIO run at 3.3 V logic, and 5 V on a pin risks the chip. The 5V pin is a power output from USB. Divide 5 V signals down to 3.3 V first.
Can the RP2040 run MicroPython instead?
Yes. The same RPI-RP2 drive accepts a MicroPython firmware UF2, and the board then works with Thonny instead of the Arduino IDE.
Why is there no COM port when I first plug the board in?
A running sketch creates the COM port, so an empty port list on a new board is normal. Hold BOOT while plugging in, upload through the RPI-RP2 drive, and the port appears.
Last updated November 2026. Stuck? Chat with us on WhatsApp.



RP2040-Zero Microcontroller Board Raspberry Pi Dual Core ARM Cortex M0+ 133MHz USB Type-C DIY Project
0.96‘ OLED Display Module Blue White Screen I2C IIC Serial 128X64 LCD Display Board - 0.96' OLED WHITE
Data Cable Type-A Type-C MicroUSB Type-B 0.5m 1m 30cm 0.3m 100cm Data Transfer Upload Code - TYPE-A TO TYPE-C CABLE (1.0M)
40pcs Dupont Wire 10cm 20cm 30cm for Breadboard DIY Experiment Jumper Wire Breadboard wire - DUPONT WIRE F-F 20CM
MB102 Breadboard 170 400 830 Holes Breadboard Donut Board Arduino Prototype Multi Color - BREADBOARD (400 HOLES)
40pcs Dupont Wire 10cm 20cm 30cm for Breadboard DIY Experiment Jumper Wire Breadboard wire - DUPONT WIRE M-M 20CM