diff options
| author | Selene ToyKeeper | 2024-03-27 07:13:26 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2024-03-27 07:13:26 -0600 |
| commit | 7b49797be1da97f54e9df3a1b0342ab20d7f02d5 (patch) | |
| tree | 1aab20b6979c781419fc61c8be73facf332ad8e2 /hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/hwdef.h | |
| parent | fixed inaccurate comment (thanks to xikteny for spotting it) (diff) | |
| download | anduril-7b49797be1da97f54e9df3a1b0342ab20d7f02d5.tar.gz anduril-7b49797be1da97f54e9df3a1b0342ab20d7f02d5.tar.bz2 anduril-7b49797be1da97f54e9df3a1b0342ab20d7f02d5.zip | |
increased voltage precision from 0.025V to 0.02V
(so 0 to 255 now goes from 0.00V to 5.10V)
Diffstat (limited to '')
| -rw-r--r-- | hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/hwdef.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/hwdef.h b/hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/hwdef.h index bc1d9a7..1c6e6be 100644 --- a/hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/hwdef.h +++ b/hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/hwdef.h @@ -94,8 +94,8 @@ enum CHANNEL_MODES { // Voltage divider battLVL #define USE_VOLTAGE_DIVIDER // use a dedicated pin, not VCC, because VCC input is regulated #define ADMUX_VOLTAGE_DIVIDER ADC_MUXPOS_AIN2_gc // which ADC channel to read -#define DUAL_VOLTAGE_FLOOR (4*21) // for AA/14500 boost drivers, don't indicate low voltage if below this level -#define DUAL_VOLTAGE_LOW_LOW (4*7) // the lower voltage range's danger zone 0.7 volts (NiMH) +#define DUAL_VOLTAGE_FLOOR (21*dV) // for AA/14500 boost drivers, don't indicate low voltage if below this level +#define DUAL_VOLTAGE_LOW_LOW ( 7*dV) // the lower voltage range's danger zone 0.7 volts (NiMH) // don't use the default VDD converter #undef voltage_raw2cooked #define voltage_raw2cooked mcu_vdivider_raw2cooked |
