micropython-examples/ldr/ldr.py

5 lines
56 B
Python
Raw Normal View History

2021-04-06 04:13:17 +00:00
from machine import ADC
ldr = ADC(0)
print(ldr.read())