I'm getting this popup whenever uploading a sketch to an RP2040 Connect (multiple boards):
Using the following sketch the connected servo is not working (but does with an Arduino Uno):
#include <Servo.h>
Servo myservo;
int val;
void setup() {
myservo.attach(4);
Serial.begin(9600);
while (!Serial);
}
void loop() {
val = map(0, 0, 1023, 0, 180);
myservo.write(val);
delay(1000);
val = map(1023, 0, 1023, 0, 180);
myservo.write(val);
delay(1000);
Serial.println("Test");
}
The board prints to the Serial Monitor. I tried using .attach(4) and .attach(12) as I'm not sure whether D4 or GPIO12 is the pin name.

