wokwi-pi-pico Reference
Raspberry Pi Pico, an RP2040 microcontroller board with dual-core ARM Cortex-M0+ processor, 264k of internal RAM, and flexible Programmable I/O (PIO) feature.
Pin names
Pins GP0 to GP22 are digital GPIO pins. Pins GP26, GP27, and GP28 are digital GPIO pins with analog input function.
Name | Description | Analog input channel |
---|---|---|
GP0 … GP22 | Digital GPIO pins (0 to 22) | |
GP26 | Digital GPIO pin 26 | 0 |
GP27 | Digital GPIO pin 27 | 1 |
GP28 | Digital GPIO pin 28 | 2 |
GND.1 … GND.8 | Ground pins * | |
VSYS, VBUS, 3V3 | Positive power supply | |
TP4 † | Digital GPIO pin 23 | |
TP5 † | Digital GPIO pin 25 + LED |
* The physical pin numbers of the ground pins are 3, 8, 13, 18, 23, 28, 33, and 38.
† These pins do not appear in the visual diagram editor, but you can use them in your diagram.json file.
Pins 3V3_EN / RUN / ADC_VREF are not available in the simulation and are therefore omitted from the table.
Onboard LED
The Raspberry Pi Pico has an onboard LED, attached to GPIO PIN 25. The LED is lit when the pin is driven high.
You can also use the LED_BUILTIN
constant to reference the LED in your Arduino code:
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, HIGH);
See Blink for a complete code example.
Simulation features
The Raspberry Pi Pico is simulated using the RP2040js Library.
This table summarizes the status of the simulation features:
Peripheral | Status | Notes |
---|---|---|
Processor core | ✔️ | Only a single core is simulated |
GPIO | ✔️ | |
PIO | ✔️ | PIO Debugger available |
USB | 🟡 | USB CDC (Serial) supported, see Serial Monitor below |
UART | ✔️ | |
I2C | ✔️ | Master mode only |
SPI | ✔️ | Master mode only |
PWM | ✔️ | |
DMA | ✔️ | Only for the PIO peripheral |
Timer | ✔️ | Pausing the timer not implemented yet |
ARM SysTick Timer | ✔️ | |
Watchdog | ❌ | |
RTC |