← Back

Activity 1.1 Hello Pico!


Instructions

Setup

  1. In your projects folder, create a new python file named 1-1-onboard-led.py.

Circuit

Circuit Diagram

No circuit diagram associated with this activity.

Circuit Build

Code

from machine import Pin
from utime import sleep

led = Pin(25, Pin.OUT)

while True:
    led.value(1)
    sleep(1)
    print(led.value())
    led.value(0)
    sleep(1)
    print(led.value())

Test