Built-in LED
The built-in LED on the Pico board can be controlled with the led command. This is a simple way to confirm that you can control the board, and it’s also useful for indicating the board’s status. This page explains how to use it.
LED Control
To turn the LED on and off:
Use the flip subcommand to toggle the LED at specified intervals. The following example blinks the LED every 100ms:
The flip subcommand blinks the LED eternally in the background, so you can run other commands while the LED blinks. To stop the blinking, use the led off command:
The following example blinks the LED for 50ms, off for 500ms, three times, then off for 2000ms, and repeats:
To stop flipping after a certain number of times, add * at the end. The following blinks three times, then turns off:
Command Reference
led
| Help of the Command | |
|---|---|