This commit is contained in:
Inamr 2024-04-30 14:36:54 +02:00
parent ca28e23b70
commit 248e0fdc91

View File

@ -49,9 +49,9 @@ uint16_t external_voltage_read(){
}
uint16_t internal_voltage_read() {
/* Gets value for the internal voltage reffreance*/
/* Gets value for the internal voltage refreance*/
ADC0.MUXPOS = 0x44;
ADC0.MUXPOS = 0x44; // Read VDDD10
uint8_t adc_val = ADC0_read();
return adc_val*10;