Just to make sure i tested it and it does not do what i want. It just controls the initial state of the lights so ON/OFF. It does not invert the logic levels Also code confirms my observations the state of the lights is only depended of the logic level of the pin.