blink_the_led
This is an old revision of the document!
Blink the LED
Introduction
We have already looked at how to flash the LED on the Pi Pico using Micro Python. So why are we talking about 'Blinking' and LED as opposed to flashing the LED?
The build in pico_led function has a 'blink' command, and this makes blinking the LED really simple from a code perspective.
Look at the following Micro Python code:
- download
from picozero import pico_led pico_led.blink(0.5)
If you copy/paste this in to Thonny and run it, you will see that just like our flashing LED example, the LED flashed twice a second.
blink_the_led.1781305612.txt.gz · Last modified: by walkeradmin

