Heres my cloud sketch for you to look at.
Credit to Sven - GitHub - SvenRosvall/SignalControl: Arduino library for controlling signals on a model railway.. I have asked him some queries to how to get it to work, but unfortunately he's to busy with other projects. Rightly so. Hes been helpfull as much as he can.
Ive managed to create a flashing yellow which wasn't in his original code. Its works as expected.
Issue Im having is with the Signal4aspect.h, I cannot get a solid yellow to light. If its last .update() then yes it will light but none will flash yellow. Its one or the other, I'd like both. Yes they share the same output pin.
Currently the block input must be held low to hold a signal. This is normal where you can use the track to create the link. In my case I want to use proximity sensors for detection because the track is fully welded and cant be used for a link.
The other thing i'd like it to do is latch it low on proximity sensor detection input and release it with the next proximity sensor detection input.
The three position with advanced caution is what im trying to get working. Ignore the little red light. Assume all signals are 3 lens signals.
Still learning.
Thanks