I have some code that allows my Arduino Uno and Ethernet Shield to change the state of 4 relays over my hard wired ethernet. I have this working fine but the four relay module I have does not allow jumpering to change the inputs from high to low when changing whether a relay energises or not. I did not write this code, it's something from A N Other.
So when I graphically press a relay button on screen from off to on the relay changes from energised to de-energised.
I want to reverse this in the code, so when a button shows OFF the relay is NOT energised, for each of four relays individually, and each relay module LED is OFF when each button shows OFF.
I hope I have made this fairly understandable? I am totally new to this and it probably shows :)
I also hope zipping the .ino file is acceptable, thanks for any help in modifying the code.