flash62au / WiTcontroller

WiTthrottle Protocol based WiFi model train controller for JMRI, DCC-EX etc.
https://dcc-ex.com/ex-toolbox/index.html
Apache License 2.0
15 stars 11 forks source link

problem with latching with function 2 horn #9

Open renegad84 opened 3 days ago

renegad84 commented 3 days ago

When change in config_buttons.h define latching is true, on all buttons where changed latching working but on #define ADDITIONAL_BUTTON_2_LATCHING true not working its stay momentary when pressed. test

flash62au commented 3 days ago

are you using JMRI?

renegad84 commented 3 days ago

yes and dcc-ex... on both is same. With Engine driver apk i dont have problem. I made 3 throttles with different esp32 and different keyboards, its the same problem

flash62au commented 2 days ago

a) What version of WitController are you using? b) What command to you have assigned to CHOSEN_ADDITIONAL_BUTTON_2_FUNCTION ?

Can I get you contact me on Discord. It will be a lot easier to work through this. https://discord.gg/qtsFHwSM Either post on the 'wifi-throttle' channel or DM me --- flash62au (Peter A)

flash62au commented 2 days ago

Sorry, I just realised that you posted an image your button_config.

You don't have anything assigned to CHOSEN_ADDITIONAL_BUTTON_2_FUNCTION It can't do anything. ADDITIONAL_BUTTON_2_LATCHING only comes into play if you are using the 6 additional optional hardware buttons.

Do you just mean Function 2 ?

renegad84 commented 2 days ago

yes function 2 or F2 when press button 2 on 4x3 or 4x4 keypad. I maybe found problem...could it be a problem from roster for default in dcc-ex station. if I create myAutomation.h with roster will be fine? but I dont made myAutomation.h with roster , and Engine driver apk is working corect, but maybe this is decision

flash62au commented 2 days ago

If you have a roster entry for the loco it obeys whatever is in the roster entry. Otherwise it uses the defaults.

In JMRI, in the wiThrottle preferences, you can make F2 default to latching. For DCC-EX you should be able to create a default roster entry, Address zero (0) and set the labels and latching to be whatever you want.

My alpha versions of Engine Driver has the ability to completely override the default labels and latching. But they are not on the Play Store yet.

renegad84 commented 2 days ago

Thank you for help, I am grateful for the assistance

flash62au commented 2 days ago

no bother :-) You're welcome.