Change button status
Posted: Sun Dec 23, 2018 3:26 pm
I am working through programming a system using 2 PMUs, a 12 button CANBus keypad, 2 wheel switches (each with 4 buttons), DTA Dash and DTA Dash.
I am struggling a little with the switches - is it possible to change their status via a function? For example the cooling fan will switch on via the ECU but will also have an override via the keypad. The button colour will change depending on the fan status and whether it is being switched via the ECU or the keypad. The fan will only switch on when the ignition is on. This all works fine, but if the fan override is ON and the ignition is switch OFF the fan switches off as expected. However I want the fan not to switch back on when the ignition is switched back on - basically to reset the button status to OFF.
Thanks in advance for any help.
I am struggling a little with the switches - is it possible to change their status via a function? For example the cooling fan will switch on via the ECU but will also have an override via the keypad. The button colour will change depending on the fan status and whether it is being switched via the ECU or the keypad. The fan will only switch on when the ignition is on. This all works fine, but if the fan override is ON and the ignition is switch OFF the fan switches off as expected. However I want the fan not to switch back on when the ignition is switched back on - basically to reset the button status to OFF.
Thanks in advance for any help.