← Back

Activity 1.3 External LED 2


Instructions

Setup

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

Circuit

Circuit Diagram

Circuit Build

Code

from machine import Pin
from utime import sleep

led = Pin(2, Pin.OUT)

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

Debug

INSERT