I'm reading two digital inputs and one analog input. For [reasons] I must use
A1 as digital ins, and
A2 as an analog in.
I'm uncertain about how the Arduino hardware deals with mixing analog and digital inputs on the same port. For speed, I'm reading like this:
uint8_t raw = PINC; boolean digitalA = (bool)(raw & 1); // read A0 boolean digitalB = (bool)(raw & 2); // read A1 int analogC = analogRead(A2);
Will the raw reading of the port interfere with the
analogRead in any way? I did see a caveat about mixing A & D, but it only had to do with noise introduced in the analog ins when doing digital outs. Would reading analog first minimize that?