From 2d3070b75cabab97343efceccf9c52d2dd82d6c6 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Wed, 8 Jul 2020 21:52:34 -0600 Subject: minor formatting cleanup --- hwdef-Noctigon_KR4.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'hwdef-Noctigon_KR4.h') diff --git a/hwdef-Noctigon_KR4.h b/hwdef-Noctigon_KR4.h index 940df41..feb49e6 100644 --- a/hwdef-Noctigon_KR4.h +++ b/hwdef-Noctigon_KR4.h @@ -82,11 +82,10 @@ #define ADMUX_VOLTAGE_DIVIDER 0b10000110 #define ADC_PRSCL 0x07 // clk/128 -// TODO: calibrate this // Raw ADC readings at 4.4V and 2.2V // calibrate the voltage readout here // estimated / calculated values are: -// (voltage - D1) * (R2/(R2+R1) * 256 / 1.1) +// (voltage - D1) * (R2/(R2+R1) * 1024 / 1.1) // D1, R1, R2 = 0, 330, 100 #ifndef ADC_44 //#define ADC_44 981 // raw value at 4.40V -- cgit v1.2.3