V2.1
This commit is contained in:
@ -4,7 +4,8 @@
|
||||
|
||||
void adc_init()
|
||||
{
|
||||
pinMode(ADC_PIN,INPUT);
|
||||
pinMode(ADC_PIN,ANALOG);
|
||||
analogReadResolution(12);
|
||||
}
|
||||
|
||||
float adc_read()
|
||||
@ -19,4 +20,6 @@ float adc_read()
|
||||
power = power / 10.f + 0.51;
|
||||
// write_log(log_path,"power: " + String(power),10);
|
||||
return power;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user