MartinD-CZ/STM32F1-open-source-multimeter

Hi why do you do the following?

Opened this issue · 0 comments

lcd.printf((char*)"%4.2f V", adc1_getReading(VBAT) * 2 * VSUP / 4096);

if I understand right you are multiplying the adc values X2 then using 2.99f/4096

I'm wondering why you had to earlier multiply by 2?