single button with dual function help
I am currently working on writing programming for a DVD/VCR player and the IR codes for switching between the DVD and VCR are different channels..... how can i have a single TP button alternate between the channels
0
Comments
DEFINE_VARIABLE nDVD_VCR_STATE DEFINE_EVENT BUTTON_EVENT[arrTP,butDVD_VCR_TOGGLE]{ PUSH:{ if(nDVD_VCR_STATE) PULSE[dvDVDVCR,nDVD_MODE] else PULSE[dvDVDVCR,nVCR_MODE] nDVD_VCR_STATE = !nDVD_VCR_STATE } }