Skip to main content

Raspberry Pi Pico W

RP2040 board from Raspberry Pi with a WiFi chip.

Raspberry Pi Pico W picture

Features

caution

I2C pins are not configured.

Stores

Pins

pin namehardware idfeatures
GP0GPIO0io
GP1GPIO1io
GP10GPIO10io
GP11GPIO11io
GP12GPIO12io
GP13GPIO13io
GP14GPIO14io
GP15GPIO15io
GP16GPIO16io
GP17GPIO17io
GP18GPIO18io
GP19GPIO19io
GP2GPIO2io
GP20GPIO20io
GP21GPIO21io
GP22GPIO22io
GP26GPIO26analogIn, io
GP27GPIO27analogIn, io
GP28GPIO28analogIn, io
GP3GPIO3io
GP4GPIO4io
GP5GPIO5io
GP6GPIO6io
GP7GPIO7io
GP8GPIO8io
GP9GPIO9io
led.pinGPIO25led.pin, wifi

DeviceScript import

You must add this import statement to load the pinout configuration for this device.

In Visual Studio Code, click the wand icon on the file menu and select "Raspberry Pi Pico W".

import { pins, board } from "@dsboard/pico_w"

Firmware update

In Visual Studio Code, select DeviceScript: Flash Firmware... from the command palette.

Run this command line command and follow the instructions.

devicescript flash --board pico_w

Configuration

pico_w.json
{
"$schema": "https://raw.githubusercontent.com/microsoft/devicescript-pico/main/boards/rp2040deviceconfig.schema.json",
"id": "pico_w",
"devName": "Raspberry Pi Pico W",
"productId": "0x3a513204",
"$description": "RP2040 board from Raspberry Pi with a WiFi chip.",
"archId": "rp2040w",
"url": "https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html",
"led": {
"#": "type=100 - special handling for Pico LED",
"pin": 25,
"type": 100
},
"pins": {
"GP0": 0,
"GP1": 1,
"GP10": 10,
"GP11": 11,
"GP12": 12,
"GP13": 13,
"GP14": 14,
"GP15": 15,
"GP16": 16,
"GP17": 17,
"GP18": 18,
"GP19": 19,
"GP2": 2,
"GP20": 20,
"GP21": 21,
"GP22": 22,
"GP26": 26,
"GP27": 27,
"GP28": 28,
"GP3": 3,
"GP4": 4,
"GP5": 5,
"GP6": 6,
"GP7": 7,
"GP8": 8,
"GP9": 9
}
}