import time
from StopwatchController import *
from Button import *
time.sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
#mystopwatch = StopwatchController()
#mystopwatch.run()
j = Joystick(hpin=27, vpin=28, swpin=22, name='Joystick')
while True:
status = j.getStatus()
if status != 'Center' and status != 'Moving':
print(f'Joystic status is {status}')
if j.isPressed():
print('Joystick button pressed')
time.sleep(0.1)