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

platformio.ini

[env:nanorp2040connect]
platform = raspberrypi
board = nanorp2040connect

; change microcontroller
board_build.mcu = rp2040

; change MCU frequency
board_build.f_cpu = 133000000L

upload_protocol = picotool

sketch

#include <Arduino.h>

void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, 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!