I have recently setup an EX-CommandStation based on an Arduino Mega and I'm really liking it!
I'm currently running it connected to RPi3b running JMRI and using WiThrottle Lite on my phone. Each time I want to run a train I need to VNC into the RPi3b running JMRI just to turn on the track power, this is quite inconvenient.
?
I was therefore wondering if it could be possible to wire a physical button to one of the Arduino GPIO and use this to toggle the track power. I have tried? to do some online searching for this, but I have not found anything.
?
Can this be implemented via an EX-Rail automation? I.e. the button triggers the automation that sends the <1 MAIN>
command? I have not found any reference that Ex-Rail automation can send DCC-EX Native Commands.
?
Alternative could somebody point me to some examples or guide me no how to edit the EX-CommandStation? code to add a physical button to toggle track power?
?
Thank you!
?