diff options
author | fishsoupisgood <github@madingley.org> | 2021-01-24 09:45:29 +0000 |
---|---|---|
committer | fishsoupisgood <github@madingley.org> | 2021-01-24 09:46:10 +0000 |
commit | 77f347fb4e37666e2d687cee99dfa4cb4e441b8a (patch) | |
tree | 64cbf11a176d12d471ecb2af153fdef53ca13c39 /humidity_sensors/app/main.c | |
parent | fb71edfb6bc0702aa2ee1cc73d0822bbc37674ad (diff) | |
download | heating-77f347fb4e37666e2d687cee99dfa4cb4e441b8a.tar.gz heating-77f347fb4e37666e2d687cee99dfa4cb4e441b8a.tar.bz2 heating-77f347fb4e37666e2d687cee99dfa4cb4e441b8a.zip |
check in humidity sensor + better sleep mode
Diffstat (limited to 'humidity_sensors/app/main.c')
-rw-r--r-- | humidity_sensors/app/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
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(); } } |