print("Hello, Pi Pico!")
from machine import Pin, PWM
import utime

potentiometer=machine.ADC(28)
ledbesar=PWM(Pin(3))
ledbesar.freq(1000)
ledkecik=PWM(Pin(25))
ledkecik.freq(1000)

while True:
  reading=potentiometer.read_u16()
  print(((reading/65535)*3.3))
  ledbesar.duty_u16(reading)
  ledkecik.duty_u16(reading)
  utime.sleep(0.1)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT