aboutsummaryrefslogtreecommitdiff
path: root/fw/main.c
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2018-12-24 19:52:13 +0900
committerjaseg <git@jaseg.net>2018-12-24 19:55:28 +0900
commitc339384cbede3ddf3e88d27229baefd1d42daa86 (patch)
tree1ddb1f7da2afb3ddfca0463cb5fb716e8bdd9c5d /fw/main.c
parentf5d7b0428db5257d62c080daa2757199c27ef784 (diff)
download8seg-c339384cbede3ddf3e88d27229baefd1d42daa86.tar.gz
8seg-c339384cbede3ddf3e88d27229baefd1d42daa86.tar.bz2
8seg-c339384cbede3ddf3e88d27229baefd1d42daa86.zip
Pimp ADC measurements with voltage means
Diffstat (limited to 'fw/main.c')
-rw-r--r--fw/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fw/main.c b/fw/main.c
index 09de3ca..0f34f7e 100644
--- a/fw/main.c
+++ b/fw/main.c
@@ -69,7 +69,7 @@ int main(void) {
}
set_outputs(0);
- adc_configure_monitor_mode(0 /*no oversampling*/);
+ adc_configure_monitor_mode(0 /*no oversampling*/, 20 /*us*/, 10000/20 /*mean window size*/);
uint8_t out_state = 0x01;
#define DEBOUNCE 100