From 313a7bb0816dd0b71032cedb4f12f7b89c6198e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Mon, 11 Jul 2022 00:31:01 +0200 Subject: [PATCH] first sensor test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 12e6d9d..db2e3c5 100644 --- a/main.py +++ b/main.py @@ -77,3 +77,5 @@ def get_moisture(): return adc.readADCSingleEnded(0, gain, sps) / 1000 + adc.readADCSingleEnded(1, gain, sps) / 1000 + adc.readADCSingleEnded(2, gain, sps) / 1000 + adc.readADCSingleEnded(3, gain, sps) / 1000 +print(get_moisture()) +print(get_water_level()) \ No newline at end of file