Forum Discussion
FPGA56
New Contributor
5 years agoThis is generally due to the hardware setup, with 3.3V connected to the LED which leads to the pin (see the image attached).
When the pin goes low, current flows through the LED towards the pin. When the pin is high both sides of the LED are at 3.3V and thus no current flows.