# Pi Pico LED blink test in Micropython
# LED at GPIO 2
from machine import Pin
import time
time.sleep(0.1) # Wait for USB to become ready
ledPin = Pin(2, Pin.OUT)
print("Hello, Raspberry Pi Pico!")
for i in range(5):
ledPin.on()
print('Light is ON')
time.sleep_ms(500)
ledPin.off()
print('Light is OFF')
time.sleep_ms(500)