Programming Raspberry Pi Pico with Arduino IDE (Pico W Compatible)
Learn how to program the Raspberry Pi Pico and Pico W using the Arduino IDE. The Raspberry Pi Pico is a low-cost microcontroller board built around the RP2040 chip by the Raspberry Pi Foundation. In this guide, you’ll learn how to set up Arduino IDE and begin programming the Raspberry Pi Pico with C/C++.
Step 1: Adding the Raspberry Pi Pico to the Boards Manager
Open Arduino IDE.
Go to File > Preferences.
In the "Additional Boards Manager URLs" field, enter the following URL:
/*
Blink - Turns an LED on for one second, then off for one second repeatedly.
This example code is in the public domain.
*/
// Setup function runs once when you press reset or power the board
void setup() {
pinMode(LED_BUILTIN, OUTPUT); // Initialize digital pin LED_BUILTIN as an output
}
// Loop function runs repeatedly
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // Turn the LED on
delay(1000); // Wait for a second
digitalWrite(LED_BUILTIN, LOW); // Turn the LED off
delay(1000); // Wait for a second
}