We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fadecba commit 5ff134fCopy full SHA for 5ff134f
atmega4809-adc-basics-mplab.X/main.c
@@ -11,7 +11,7 @@
11
12
#define MAX_VOL 2.5 // VREF=2.5V
13
#define RES_10BIT 0x3FF
14
-#define ADC_CHANNEL 6
+#define ADC_CHANNEL ADC_CHANNEL ADC_MUXPOS_AIN6_gc
15
16
uint16_t adc_result = 0;
17
float calc_volt;
0 commit comments