Channel up/down display


Recommended Posts

I need to change the channels on a 2-way radio.

I created an up and a down button and need a display to count up/down as the buttons

are pressed.

It would be nice if the display and channel up/down buttons would only go to 6 since there

are only 6 channels in the radio.

I attached the file I created

Thanks

Link to comment
Share on other sites

First you'll need a global variable to hold the current value. Initialize it as well (presumably to 1). Then create two buttons, one for up, one for down, and a variable value component to display the variable. Both the up and down buttons will have a Quick Sequence action. For Up (assuming variable is named radioChannel:

if (radioChannel < 6)
   radioChannel++
endif

For Down:

if (radioChannel > 1)
   radioChannel--
endif

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.