I would like to clarify some discussion from another topic related to the behavior of AF_OUTPUT_DRAIN as a pinMode. The testing that I have done seems to show that AF_OUPUT_DRAIN does not behave as a high impedance line when A2 is set high:
pinMode(A2,AF_OUTPUT_DRAIN); digitalWriteFast(A2,1); // should set to high impedance on A2
This is in contrast to when pinMode is set to input, where the line does behave as high impedance. I guess I would like A2 to act as a pulldown when set low, but high impedance otherwise.
Is this possible? Should I be looking at other functionality?
Edit for clarity: Switching the pinMode from input to output when I want to drive the circuit low seems to insert a delay/glitches that would be prohibitive.