Reading Vcc at ADC
Hello I need to read the voltage where I connected ADC to the voltage divider. I have a code of ATmega where I need it to convert to HAL code. Can you please suggest me how?here's the code:void readVcc(byte ATR[]) { ADCSRA |= _BV(ADSC); // Convert...