from machine import ADC
import time
time.sleep(0.1) # Wait for USB to become ready
LDR = ADC(28)
while True:
result = LDR.read_u16()
print(result)
time.sleep(0.3)
from machine import ADC
import time
time.sleep(0.1) # Wait for USB to become ready
LDR = ADC(28)
while True:
result = LDR.read_u16()
print(result)
time.sleep(0.3)