From 77f347fb4e37666e2d687cee99dfa4cb4e441b8a Mon Sep 17 00:00:00 2001 From: fishsoupisgood Date: Sun, 24 Jan 2021 09:45:29 +0000 Subject: check in humidity sensor + better sleep mode --- humidity_sensors/app/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'humidity_sensors/app/main.c') diff --git a/humidity_sensors/app/main.c b/humidity_sensors/app/main.c index a94d681..d7f5908 100644 --- a/humidity_sensors/app/main.c +++ b/humidity_sensors/app/main.c @@ -10,9 +10,12 @@ main (void) uart_init(); i2cb_init(); + awu_init(); + sht20_reset(); - //enableInterrupts (); + + enableInterrupts (); for (;;) { printf ("$SNTHD,%s,%s\n", sht20_temp_s(), sht20_humid_s()); @@ -22,6 +25,6 @@ main (void) sht20_reset(); } - delay_ms (1000); + halt(); } } -- cgit v1.2.3