gpio_controlled_leds
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| gpio_controlled_leds [2026/06/30 20:58] – walkeradmin | gpio_controlled_leds [2026/06/30 21:01] (current) – walkeradmin | ||
|---|---|---|---|
| Line 33: | Line 33: | ||
| # On a Raspberry Pi Pico, GPIO 25 is usually connected to the onboard LED. | # On a Raspberry Pi Pico, GPIO 25 is usually connected to the onboard LED. | ||
| led1 = machine.Pin(25, | led1 = machine.Pin(25, | ||
| - | # Creates an output pin object for GPIO 2. | + | # Creates an output pin object for GPIO 2 (GP2). |
| led2 = machine.Pin(2, | led2 = machine.Pin(2, | ||
| - | # Creates an output pin object for GPIO 6. | + | # Creates an output pin object for GPIO 6 (GP6). |
| led3 = machine.Pin(6, | led3 = machine.Pin(6, | ||
| - | # Creates an output pin object for GPIO 10. | + | # Creates an output pin object for GPIO 10 (GP10). |
| led4 = machine.Pin(10, | led4 = machine.Pin(10, | ||
gpio_controlled_leds.1782853084.txt.gz · Last modified: by walkeradmin
