Mio Classic Keypads & Hold
I was working on getting the hold for the volume up & volume down ramp on the new Mio Classic keypads with no luck.
I programmed it like you would the old 8 button keypads but as I hold the button down I get nothing any ideas?
example:
using an ada suite 16 switcher
I programmed it like you would the old 8 button keypads but as I hold the button down I get nothing any ideas?
example:
BUTTON_EVENT[dvKeypads,nKeypad_Buttons]
{
PUSH:
{
nPanel_Index = Get_Last(dvKeypads) + 5
nPanel_Address = nPanel_Index + 144
nButton = Get_Last(nKeypad_Buttons)
Switch(nButton)
{
CASE 6: /// Volume Up
{
/// command to send volume up
BREAK
}
CASE 7: /// Volume Down
{
/// command to send volume down
BREAK
}
}
}
HOLD[2,Repeat]:
{
Switch(nButton)
{
CASE 6: /// Volume Up
{
/// command to send volume up
BREAK
}
CASE 7: /// Volume Down
{
/// command to send volume down
BREAK
}
}
}
}
using an ada suite 16 switcher
0
Comments
Jeff
You could set a flag value between push and release and use a 2/10 sec timeline to do the hold programmatically.
Add the variable nPushOnly above:
BUTTON_EVENT[dvKeypads,nKeypad_Buttons] { PUSH: { nPanel_Index = Get_Last(dvKeypads) + 5 nPanel_Address = nPanel_Index + 144 nButton = Get_Last(nKeypad_Buttons) } HOLD[2,Repeat]: { nPushOnly = 1; Switch(nButton) { CASE 6: /// Volume Up { /// command to send volume up } CASE 7: /// Volume Down { /// command to send volume down } } } RELEASE { if(nPushOnly == 0) { Switch(nButton) { CASE 6: /// Volume Up { /// command to send volume up } CASE 7: /// Volume Down { /// command to send volume down } } else { nPushOnly = 0; } } }