micropython-examples/ldr/ldr.py

5 lines
56 B
Python

from machine import ADC
ldr = ADC(0)
print(ldr.read())