This commit is contained in:
2026-01-15 15:00:21 +08:00
parent e67749e2e4
commit 419f6cc78c
705 changed files with 9981 additions and 35723 deletions

View File

@ -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;
}
}