# ISM 6106 Mini Lab 1
# Jit Sengupta
# This does some basic interfacing with a raspberry Pi
# this is an single line comment
import time
time.sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
from Log import *
from Lights import *
from Button import *
Log.i('Starting mini lab 1')
redled = Light(5, 'Red LED')
bluebutton = Button(10, 'Blue button')
while True:
if bluebutton.isPressed():
redled.on()
else:
redled.off()