from machine import Pin
from utime import sleep

LED=Pin(0,Pin.OUT)
fr=[1,2,4,8]

while True:
    for freq in fr:
        period=1/freq
        LED.toggle()
        sleep(period)

####################################################################################
'''import machine
import utime

# Define the pin number to which the LED is connected
led_pin = machine.Pin(0, machine.Pin.OUT)

frequencies = [1, 2, 4, 8]  # List of frequencies in Hz

while True:
    for freq in frequencies:
        period = 1 / (2 * freq)  # Calculate the period for the given frequency
        led_pin.on()  # Turn the LED on
        utime.sleep(period)  # Wait for half a cycle
        led_pin.off()  # Turn the LED off
        utime.sleep(period)  # Wait for half a cycle'''
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT