From 012f926510607f88f28cb99a93aaa9343f5dcf20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sun, 10 Jul 2022 00:24:32 +0200 Subject: [PATCH] forgott test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index f3af3b5..86f1a9e 100644 --- a/test.py +++ b/test.py @@ -19,4 +19,7 @@ def get_moisture(): voltsChArray = [adc.readADCSingleEnded(0, gain, sps) / 1000, adc.readADCSingleEnded(1, gain, sps) / 1000, adc.readADCSingleEnded(2, gain, sps) / 1000, adc.readADCSingleEnded(3, gain, sps) / 1000] - return sum(voltsChArray) / float(len(voltsChArray)) \ No newline at end of file + return sum(voltsChArray) / float(len(voltsChArray)) + +while True: + print(get_moisture()) \ No newline at end of file