Same as the more generic micropython/blink_gpio.py but with the onboard LED added.
rpi-pico-w/upython/blink_gpio.py
import machine
import time
led = machine.Pin('LED', machine.Pin.OUT)
pin = machine.Pin(0, machine.Pin.OUT)
i = 0
while (True):
pin.toggle()
led.toggle()
print(i)
time.sleep(.5)
i += 1
Ancestors
- Raspberry Pi Pico W MicroPython example
- Program Raspberry Pi Pico W with MicroPython
- Program Raspberry Pi Pico W with X
- Raspberry Pi Pico W
- Raspberry Pi Pico variant
- Raspberry Pi Pico
- Raspberry Pi
- Raspberry Pi Foundation project
- Raspberry Pi Foundation
- Computer manufacturer
- Computer hardware
- Computer
- Information technology
- Area of technology
- Technology
- Home
Ciro Santilli