From a9127279f6b064f74793bedc3f979f60ac624e85 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Fri, 6 Mar 2020 03:53:30 -0700 Subject: fixed the ADC channel for voltage measurement --- hwdef-Noctigon_KR4.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hwdef-Noctigon_KR4.h b/hwdef-Noctigon_KR4.h index 98a0a5f..f624e64 100644 --- a/hwdef-Noctigon_KR4.h +++ b/hwdef-Noctigon_KR4.h @@ -53,7 +53,7 @@ // the button tends to short out the voltage divider, // so ignore voltage while the button is being held -#define NO_LVP_WHILE_BUTTON_PRESSED +//#define NO_LVP_WHILE_BUTTON_PRESSED #define PWM1_PIN PB3 // pin 16, Opamp reference @@ -79,7 +79,7 @@ // divided by ... // REFS[1:0] = 1, 0 for internal 1.1V reference // other bits reserved -#define ADMUX_VOLTAGE_DIVIDER 0b10000111 +#define ADMUX_VOLTAGE_DIVIDER 0b10000110 #define ADC_PRSCL 0x06 // clk/64 // TODO: calibrate this -- cgit v1.2.3