# Physical Computing Lesson 2
# 02 External LED via Breadboard
# DAN
# 21/12/2022
# Parts & Instructions
# 1.Raspberry Pi Pico
# 2.Half Breadboard
# 3.LED
# 4.Male to Female leads x 2
# 5.Connect LED long leg to Row a column 4, short leg to a column 5
# 6. Connect the legs of the resistor to b column 4 and d column 4
# 6.Connect black cable Male end to Row e column 4 of the breadboard to GND7
# 7.Connect coloured cable Male end to Row e column 5 on the breadboard and to GPIO28 on the circuit board
import machine
import utime
led = machine.Pin(28,machine.Pin.OUT)
print("Blinking Light")
while True:
led.value(1)
utime.sleep(3)
led.value(0)
utime.sleep(3)