void setup() {
// put your setup code here, to run once:
Serial1.begin(115200);
Serial1.println("Hello, Raspberry Pi Pico W!");
pinMode(26, INPUT);
pinMode(4, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
// this speeds up the simulation
int a=analogRead(26);
Serial1.println(a);
analogWrite(4,a);
//digitalRead(4, HIGH);
}
Loading
pi-pico-w
pi-pico-w