Error Compiling Arduino Nano RP2040Connect

I want to use the Arduino Nano RP2040 Connect with Platform IO. When compiling I get the error.

 1 | #include <Arduino.h>
      |          ^~~~~~~~~~~
compilation terminated.
*** [.pio\build\nanorp2040connect\src\main.o] Error 1


platform = raspberrypi
board = nanorp2040connect

; change microcontroller
board_build.mcu = rp2040

; change MCU frequency
board_build.f_cpu = 133000000L

upload_protocol = picotool


#include <Arduino.h>

void setup() {
  // initialize digital pin LED_BUILTIN as an output.

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(500);                      // wait for a second
  digitalWrite(LED_BUILTIN, LOW);   // turn the LED off by making the voltage LOW
  delay(500);                      // wait for a second

what am I doing wrong?

But where’s framework = arduino?

See official examples

1 Like

Yes, I forgot the framework! Thanks very much!