We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c7e6f55 + 47982f8 commit e7ed91bCopy full SHA for e7ed91b
cores/arduino/analog.cpp
@@ -558,7 +558,10 @@ void analogReference(uint8_t mode) {
558
R_ADC_Open(&adc1.ctrl, &adc1.cfg);
559
}
560
561
+#if defined(AVCC_MEASURE_PIN)
562
static float aref = 0;
563
+#endif
564
+
565
float analogReference() {
566
switch (adc.cfg_extend.adc_vref_control) {
567
case ADC_VREF_CONTROL_1_5V_OUTPUT:
@@ -817,4 +820,4 @@ void analogWrite(pin_size_t pinNumber, int value)
817
820
818
821
FspTimer* __get_timer_for_channel(int channel) {
819
822
return pwms.get_from_channel(channel)->get_timer();
-}
823
+}
0 commit comments