Using a DCC signal to switch outputs - does not work

Nobody interested?
Looks like using the Xiao will have been a waste of time if I can’t get this Nano project to work on it. :disappointed: