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 /arch/attiny85.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-- | arch/attiny85.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/attiny85.h b/arch/attiny85.h index 3f6ffcb..06a1061 100644 --- a/arch/attiny85.h +++ b/arch/attiny85.h @@ -53,7 +53,7 @@ inline void mcu_adc_off(); inline uint16_t mcu_adc_result(); -// return Volts * 40, range 0 to 6.375V +// return Volts * 50, range 0 to 5.10V #define voltage_raw2cooked mcu_vdd_raw2cooked inline uint8_t mcu_vdd_raw2cooked(uint16_t measurement); inline uint8_t mcu_vdivider_raw2cooked(uint16_t measurement); |
