Compare commits
1 Commits
main
...
voltage-re
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
248e0fdc91 |
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user