hi guys
Quick question.
If you want to use multiple analog pins, do you set the ones you want to use at initialization or do you change the mux register values just before reading each time?
i.e if I want to use analog0 and analog1, analog0 needs:
ADMUX &= ~(1 << MUX0); ADMUX &= ~(1 << MUX1); ADMUX &= ~(1 << MUX2); ADMUX &= ~(1 << MUX3);
and analog1 needs:
#
ADMUX |= (1 << MUX0); //ADC1 is set
so they conflict - so Im assuming to read analog1, I just reset the ADMUX register just before reading?