User Tools

Site Tools


gpio_controlled_leds

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
gpio_controlled_leds [2026/06/30 20:58] walkeradmingpio_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, machine.Pin.OUT) led1 = machine.Pin(25, machine.Pin.OUT)
-# Creates an output pin object for GPIO 2.+# Creates an output pin object for GPIO 2 (GP2).
 led2 = machine.Pin(2, machine.Pin.OUT) led2 = machine.Pin(2, machine.Pin.OUT)
-# Creates an output pin object for GPIO 6.+# Creates an output pin object for GPIO 6 (GP6).
 led3 = machine.Pin(6, machine.Pin.OUT) led3 = machine.Pin(6, machine.Pin.OUT)
-# Creates an output pin object for GPIO 10.+# Creates an output pin object for GPIO 10 (GP10).
 led4 = machine.Pin(10, machine.Pin.OUT) led4 = machine.Pin(10, machine.Pin.OUT)
  
gpio_controlled_leds.1782853084.txt.gz · Last modified: by walkeradmin