开云体育

DIY DCC decoder setting window #scripting #definitions


 

Hi,?

I am in the middle of prototyping my own DCC Accessory decoder hardware (using MicroBahner's DCC_Zubehoerdecoder software) and I would like to be able to adjust CV's and switch outputs from a window.
Basically, I would like to re-create decoderpro's Turnout Control action window, but with more specific buttons and CV inputs.?

I have had a look through some of the scripting examples, and I'm happy building on JButtonComplexExample.py to do what I want.?

The issue I have is whilst I believe that I can write CV's to the decoders using the code from OpsProgExample.py, what I can't find how to do is throw the turnouts based on their address (same as the Turnout Control window).?
I went looking to see if I could find the code for the Turnout Control window and didn't get that far.?

Could anyone point me to where the code for the Turnout Control window is (so I can copy / mod) or suggest how I would control turnouts and show their current state like this window does (as in, what functions do I need to use in the script).?

Many thanks?

Gareth?

Join [email protected] to automatically receive all group messages.