LED Set method

Ok, so our team wants to have certain LEDs light up when tasks are being performed. I have gotten the DriverStation enhanced IO LED.get method, but i can’t figure out how to set the lights to go on or off. The set method requires a 1D array as input, but i only want certain lights to go on and off. Do i just change the boolean value in the array, or is there more than meets the eye. Pre-thanks in advance.

Team 810’s only vet programmer.

You figured it out. Each write affect all of the LEDs. So you can use Boolean logic on the array, or array operations to Replace the ones in the array. You can also Build the array from what you want to set/clear.

Greg McKaskle