import machine as Gpio
import utime as TM
# Define the RGB LED pins (commom cathode)
LED_Pin = Gpio.Pin(9, Gpio.Pin.OUT)
# Helper function to set RGB color
def set_red_color(Red):
LED_Pin.value(Red)
# Main loop
while True:
#Red
set_red_color(1)
print("LED ON")
TM.sleep(1)
set_red_color(0)
print("LED OFF")
TM.sleep(1)