Put reading in a loop

This commit is contained in:
Jimmy 2021-06-17 19:52:27 +12:00
parent 164d686df3
commit de247b3354
1 changed files with 4 additions and 1 deletions

View File

@ -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)