User Tools

Site Tools


control_an_led_using_a_button

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
control_an_led_using_a_button [2026/07/09 18:10] – created walkeradmincontrol_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:button-led-pico-003.png?500 |}}+{{ :button-led-pico-003.png?500 |}} 
  
 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:button-led-pico-004.mp4?480x360 |}}+{{ :button-led-pico-004.mp4?480x360 |}}
  
 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