Put reading in a loop
This commit is contained in:
parent
164d686df3
commit
de247b3354
|
@ -1,5 +1,8 @@
|
|||
from machine import ADC
|
||||
from time import sleep
|
||||
|
||||
ldr = ADC(0)
|
||||
|
||||
print(ldr.read())
|
||||
while True:
|
||||
print(ldr.read())
|
||||
sleep(1)
|
Loading…
Reference in New Issue