Trying to make a standalone signal system...

hbingham86:
The last post wasn't meant to be actual code. More so my interpretation of the program when done. I've been tweaking the code to have the ability to have a delay (millis() ) between setting the turnouts and changing the colors on the signals to give the switches time to move. I am also trying to figure out how to make the red Flash when I needed it to. Before all I had to do was set the signalpin to flash and the code did the rest. Not sure how to modify this one to do that.
So to set a signal to red I would just have to code:
Signalpin[1] = red; // signal 1 upper head
I'm on my phone but I'll upload my modified sketch later.

Thanx
Harrison

I didn't put any timing in my sketch because you had not described the need for any at the time. You CAN'T use delay() in a project as complex as this. You can only manage timing using the technique in the Blink Without Delay example sketch. I would be surprised if that wasn't already mentioned in one of 70 or so the earlier posts.

I put a lot of effort into producing my sketch and I don't get the impression from any of your comments so far that you have bought into that way of doing things. For example in your code above you have a one-dimension array called Signalpin[]. In my code it is a 2-dimension array and called signalPin[][].

As I said, you are under no obligation to take my advice. But please let me know if you don't wish to so that I can retire from the project. Otherwise, please give some concrete indication that what I have done is meaningful.

...R