Example Code for Raspberry Pi Pico-Blink LED

This sample uses the Blink code to show the level change of the port.

Sample Code

int LED=0;
void setup() {
  pinMode(LED, OUTPUT);
}

void loop() {
  digitalWrite(LED, HIGH);   
  delay(1000);                       
  digitalWrite(LED, LOW);    
  delay(1000);                      
}

Result

After the code is downloaded into PICO, it can be viewed that the LED corresponding to the GP0 will blink.

Was this article helpful?

ON THIS PAGE

TOP