diff options
| author | Selene ToyKeeper | 2020-03-06 03:53:30 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2020-03-06 03:53:30 -0700 |
| commit | a9127279f6b064f74793bedc3f979f60ac624e85 (patch) | |
| tree | 14dac01dc9c74415ceb4cdd9f632fdbb703153a5 | |
| parent | FET ramp was too steep; slowed it down by 50% (20 steps -> 30 steps) (diff) | |
| download | anduril-a9127279f6b064f74793bedc3f979f60ac624e85.tar.gz anduril-a9127279f6b064f74793bedc3f979f60ac624e85.tar.bz2 anduril-a9127279f6b064f74793bedc3f979f60ac624e85.zip | |
fixed the ADC channel for voltage measurement
Diffstat (limited to '')
| -rw-r--r-- | hwdef-Noctigon_KR4.h | 4 |
1 files 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 |
