print("Hello, Pi Pico!")
"""
from machine import Pin
led_rouge = Pin (1,Pin.OUT)
led_vert = Pin (2,Pin.OUT)
led_bleu = Pin (4,Pin.OUT)
BP1 = Pin(6,Pin.IN)
BP2 = Pin(7,Pin.IN)
help()
from machine import Pin
pin_button = Pin(6, mode=Pin.IN, pull=Pin.PULL_UP)
pin_led_R = Pin(1, mode=Pin.OUT)
pin_led_V = Pin(2, mode=Pin.OUT)
pin_led_B = Pin(4, mode=Pin.OUT)
while True:
if not pin_button.value():
pin_led_R.on()
"""
from machine import Pin,PWM
import utime
import random
Led_R = PWM(Pin(1))
Led_G = PWM(Pin(2))
Led_B = PWM(Pin(4))
# Define the frequency
if __name__ == "__main__":
while True:
# range of random numbers
R=random.randint(0,65535)
G=random.randint(0,65535)
B=random.randint(0,65535)
Led_R.duty_u16(R)
Led_G.duty_u16(G)
Led_B.duty_u16(B)
utime.sleep_ms(100)