From de247b33548b37358801672df70902f63f909f87 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Thu, 17 Jun 2021 19:52:27 +1200 Subject: [PATCH] Put reading in a loop --- ldr/ldr.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ldr/ldr.py b/ldr/ldr.py index 213d7ae..4050166 100644 --- a/ldr/ldr.py +++ b/ldr/ldr.py @@ -1,5 +1,8 @@ from machine import ADC +from time import sleep ldr = ADC(0) -print(ldr.read()) \ No newline at end of file +while True: + print(ldr.read()) + sleep(1) \ No newline at end of file