6#define VOLTAGE_CHANNEL 0x5 
    7#define CURRENT_CHANNEL 0x6 
    8#define ADC_RESOLUTION  (1024 - 1) 
   14#define AVERAGE_SAMPLES 8 
   30static uint16_t measure_adc(uint8_t channel)
 
   46    return (uint16_t)(sum);
 
adc_result_t ADC_GetConversion(adc_channel_t channel)
uint16_t measure_voltage()
uint16_t measure_current(uint16_t offset)
Measuring current and voltage from the solar panel.