Closed kapyaar closed 3 years ago
Need help updating variants.cpp to enable ADC14 and 15. I believe it is not enabled by default. Original definition for ADC14 in PinDescription g_APinDescription[]= is
{ PIOA, PIO_PA1A_CANRX0, ID_PIOA, PIO_PERIPH_A, PIO_DEFAULT, PIN_ATTR_DIGITAL, ADC14, NO_ADC, NOT_ON_PWM, NOT_ON_TIMER }, // CANRX
I tried
{ PIOB, PIO_PB21X1_AD14, ID_PIOB, PIO_INPUT, PIO_DEFAULT, PIN_ATTR_ANALOG, ADC14, ADC14, NOT_ON_PWM, NOT_ON_TIMER }, // AD14
Still reading 0 all the time on ADC14. Am I missing something?
Need help updating variants.cpp to enable ADC14 and 15. I believe it is not enabled by default. Original definition for ADC14 in PinDescription g_APinDescription[]= is
{ PIOA, PIO_PA1A_CANRX0, ID_PIOA, PIO_PERIPH_A, PIO_DEFAULT, PIN_ATTR_DIGITAL, ADC14, NO_ADC, NOT_ON_PWM, NOT_ON_TIMER }, // CANRX
I tried
{ PIOB, PIO_PB21X1_AD14, ID_PIOB, PIO_INPUT, PIO_DEFAULT, PIN_ATTR_ANALOG, ADC14, ADC14, NOT_ON_PWM, NOT_ON_TIMER }, // AD14
Still reading 0 all the time on ADC14. Am I missing something?