DEVCHAN and GET_LAST
Jeff Lockyear
Posts: 147
I'm familiar with using DEVCHAN arrays, and I can use GET_LAST with said array when there's only one touchpanel. If there's more than one TP, I run into problems with the value the GET_LAST gives me (I want it to be the same for each different panel).
DEVCHAN TP_BUTTON [] =
{
{TP1,10},{TP1,11},{TP1,12},
{TP2,15},{TP2,16},{TP2,17}
}
GET_LAST would return a 4 when TP2,15 is pushed, but in my code it would be much better to see a 1, like when TP1,10 is pushed. Do I need a separate DEVCHAN array per touchpanel? If I put all the panels in a DEV array first, I can't put that DEV in a DEVCHAN array, which would seem the best solution.
Make any sense?
Jeff Lockyear
Synergy Home Systems, Toronto
DEVCHAN TP_BUTTON [] =
{
{TP1,10},{TP1,11},{TP1,12},
{TP2,15},{TP2,16},{TP2,17}
}
GET_LAST would return a 4 when TP2,15 is pushed, but in my code it would be much better to see a 1, like when TP1,10 is pushed. Do I need a separate DEVCHAN array per touchpanel? If I put all the panels in a DEV array first, I can't put that DEV in a DEVCHAN array, which would seem the best solution.
Make any sense?
Jeff Lockyear
Synergy Home Systems, Toronto
0
Comments
Jeff,
Set up an array of devices and a separate array of channels.
Jeff