8 lines
108 B
Python
8 lines
108 B
Python
from machine import ADC
|
|
from time import sleep
|
|
|
|
ldr = ADC(0)
|
|
|
|
while True:
|
|
print(ldr.read())
|
|
sleep(1) |