According to the documentation on github, the output pins on the explorer are to be driven low using explorerhat.output.one.off() there by allowing 5V VCC to flow to the output as GND. What I am seeing is that when the pin is driven high, the voltage seems to be fluctuating all over the place when it should be ~0.
My test setup on the Explorer pHAT is 5V to a 330 ohm resistor, then to Output 1. I then have a lead from the same breadboard row going to Analog 1 so I can test the voltage. Here is the bit of code I am using to test:
V = 0
V = explorerhat.analog.two.read()
When I run that code and then drive the Output pin low I get a nice steady voltage as follows:
When I drive the pin high I get the following voltage:
I believe the pin is floating and that is likely what is causing the fluctuation. However for my application I need to insure that there is minimal voltage going to my sensor when the pin is driven high. Is this the expected behavior or is there something I am missing?