cattledog:
Here is the state change version of the code using the Bounce2 library for debounced button transitions. The library is available through the library manager. The press and hold buttons work when the toggle buttons have timed out.I'm sure the code can be tidied up with use of arrays.
Gosh you are an artist! it worked exactly as I wanted it to work. You have relieved a long time agony and suffering... works flawlessly now! thank you thank you thank you
:).