import PikaStdLib import machine time = machine.Time() while True: time.sleep_ms(500) print('0.5s') time.sleep_s(1) print('1s')