Raspberry Pi Pico and Arduino IDE?

I am very interested in the newly released Raspberry Pi Pico using the RP2040 chip. Can anyone tell me if it can be programmed using the Arduino IDE, like most of my other microprocessors. I really don’t want to install a different tool chain.

I don’t think it can be currently, but in Arduino’s blog post they say that they’re in the process of porting t

But there’s more! We are going to port the Arduino core to this new architecture in order to enable everyone to use the RP2040 chip with the Arduino ecosystem (IDE, command line tool, and thousands of libraries). Although the RP2040 chip is fresh from the plant, our team is already working on the porting effort… stay tuned.

1 Like

Thanks, Shoe, I look forward with interest.

1 Like

I am also badly missing this and could not wait…

In one and a half days of work I came up with the following: A simple Arduino Framework for the new Raspberry Pico - Phil Schatzmann

Breaking News. Arduino support on the Pico:

See here: (14) Arduino Support for the Pi Pico available! And how fast is the Pico? - YouTube

This really works!
earlephilhower (Earle F. Philhower, III) (github.com)

Easy to setup and run Blink. Digital and analog IO work a treat. It compiles quite quickly and automatically uploads to the Pico.

/*
  Analog read a pot and control LED brightness with pot value
  Tony Goodhew 3 April 2021
  10K pot on pin 26
  LED and 330 Ohm resistor on pin 16
  
*/
//Initializing LED Pin
int led_pin = 16;

void setup() {
  Serial.begin(11520);
  delay(1000); // Wait for Serial port
  //Declaring LED pin as output
  pinMode(led_pin, OUTPUT);
}

void loop() {
  // read the input on analog pin 0:
  int sensorValue = analogRead(26); // Range is 0 - 4095
  sensorValue = sensorValue - 26;
  // Correct ADC zero value offset - Top less important
  if (sensorValue < 0) {sensorValue = 0;}
  // print out the value you read:
  Serial.println(sensorValue);
  int pwmValue = int(sensorValue / 16); // Range 0 - 255
  analogWrite(led_pin, pwmValue);
  delay(200);
}

Tried to get SSD1306 working with Adafruit libraries. It compiled and uploaded the example but screen did not light up. I’m not sure where to plug in SDA and SCL. I’ve tried 0,1 and 8,9 but Arduino IDE expects them to be predefined to specified pins.