DCC-EX / Support-Planning

DCC++EX Repo to hold project planning documentation and processes
1 stars 1 forks source link

DCC-ex sensors and commands #756

Open fire-bot opened 4 months ago

fire-bot commented 4 months ago

Sent by Joseph Wohl (josephwohl22@gmail.com). Created by fire.


Hello,

I am trying to build a DCC-ex module with built in physical controls, I currently have a arduino mega2560 and deek-robot motor shield configured correctly. in addition, I have a pushbutton connecting pin 2 to ground and have configured said pin and get <Q 1> and <q 1> from the serial monitor when I press the button, how do I make the button do things? for example, use the button's state to activate the <0> and <1> command respectively.

Thanks!

habazut commented 4 months ago

https://dcc-ex.com/ex-rail/index.html#gsc.tab=0