from machine import Pin,PWM
import time

led_r = PWM(Pin(19),freq=1000,duty=0)
led_g = PWM(Pin(18),freq=1000,duty=0)
led_b = PWM(Pin(5),freq=1000,duty=0)

color1 = (255,0,0)
color2 = (0,255,0)
color3 = (0,0,255)
color4 = (0,0,0)

while 1:
    for i in range(0,1023):
        led_r.duty(i)
        time.sleep_ms(2)
    time.sleep(1)
    for i in range(1023,0,-1):
        led_r.duty(i)
        time.sleep_ms(2)
    time.sleep(100)