I have a digital input to a microcontroller in the +5V Domain.
This digital input is connected to the Microcontroller. The output of the Microcontroller is connected to an LED
Initial LED Logic :
Input - High, Output - High (LED Glow)
Input - Low, Output - Low (LED OFF)
Suppose, with the same Input hardware, i.e. Input - High, can I change my LED logic within software itself so that I can achieve LED = OFF when Input is High and LED = ON when Input = LOW.
Now required LED Logic :
Input - High, Output - Low (LED OFF)
Input - Low, Output - High (LED Glow)
Can I change the Initial LED Logic in software? If so, why not?