The joystick output block takes an
array of Boolean values to define the output state on the TI LaunchPad.
Here are a couple of examples of setting the outputs with arrays:
If you have a couple of switches, you could do something similar to below:
Note that in my examples above everything is
zero indexed (the output names I set start with 0). On the TI LaunchPad documentation the outputs are
1 indexed (the output naming start with 1).