import machine
import time
print("Hello you federal youth")
# Define / Initialise LED pins
led1_pin = machine.Pin(27, machine.Pin.OUT)
# Blink LEDs
def blink(led_pin, duration_ms):
led_pin.value(1) # LED on
time.sleep_ms(duration_ms) # Wait
led_pin.value(0) # Turn LED off
# Main loop
while True:
blink(led1_pin, 500) # Blink LED 1 for 500ms
time.sleep_ms(100) # Wait 100ms
time.sleep(0.1) # Wait for USB to become ready