from machine import Pin, ADC
import utime

led_k = Pin(7, Pin.OUT)
led_b = Pin(8, Pin.OUT)

led_k.value(0)
led_b.value(0)

pot = ADC(26)

while True:
    deger = pot.read_u16()
    print("Değer =", deger)  
    
    if deger < 32767:  
        led_k.value(1)
        led_b.value(0)  
    else:
        led_b.value(1)
        led_k.value(0)  

    utime.sleep(2)  
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT