Problem with controlling a servo

Barry_Cole:
As per John's post above.??? ;D ;D
The only problem know is that the relays work in the wrong order. Input 1 turns on relay 4.
If it is an easy mod, that would be great, as they are all wired into the layout

I'm sorry that I did not notice that the 'buttonNPin' and 'rlyNPin' names were numbered in the opposite order from the switchPin[] indexes of the same pin number. 4->0, 3->1, 2->2, 1->3. I assumed they were numbered in the same order.
It is an easy mod. Just reverse the order of the RelayPins[] array so they match the (reversed) order of the button pins in the SwitchPins[] array.

How do I post a sketch, the way you did earlier??

See Read this before posting a programming question

John,
Thanks that has sorted it.

Thanks to all who offered help.

Case now closed.

BC