@Alex-Ray said in Inverted IO Logic:
Am I just not understanding something?
Am I looking at this wrong?
The answer is yes. It depends on how LED and/or button are connected. pin(1) puts ~3.3 V at the output pin, pin(0) outputs 0V.
Similar pin() reads 1 if the input level is ~3.3V, and reads 0 is the input level is low. If your LED is connected the common way between output and 3.3V, it will light on if the output level is low, and go off if the output level is high.
If the button is connected the common way between input and GND, pin() will read 1 if the button is NOT pressed, and 0 if the button is pressed.