control_an_led_using_a_button
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| control_an_led_using_a_button [2026/07/09 18:10] – created walkeradmin | control_an_led_using_a_button [2026/07/14 19:02] (current) – [Add an LED and Button to the Pico] walkeradmin | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| \\ | \\ | ||
| \\ | \\ | ||
| - | {{ :corporate: | + | {{ : |
| In this example, we have the LED being connected to GP14 (pin 19) and GND (pin 18) via a 100 ohm resistor. You can use one of the GND pins on the Pico, or a common GND rail if you have made one. | In this example, we have the LED being connected to GP14 (pin 19) and GND (pin 18) via a 100 ohm resistor. You can use one of the GND pins on the Pico, or a common GND rail if you have made one. | ||
| Line 58: | Line 59: | ||
| \\ | \\ | ||
| \\ | \\ | ||
| - | {{ :corporate: | + | {{ : |
| Looking at the simulation above, we can see that when the button is not pressed, we get a delay of 1000mS as per the MicroPython code, so 1 flash every two seconds (1s on, 1s off). | Looking at the simulation above, we can see that when the button is not pressed, we get a delay of 1000mS as per the MicroPython code, so 1 flash every two seconds (1s on, 1s off). | ||
control_an_led_using_a_button.1783620624.txt.gz · Last modified: by walkeradmin
