When using HIGH or LOW commands, it does not matter whether the pin is registered to be as an input or output pin.

HIGH and/or LOW already set the pin as an output pin.

Just make sure that the pin is not an input only pin.


----------------------