This makes handling the LED easy
You can give the inputs priority levels and it automatically falls back to a lower priority when a higher priority turns off.