![]() |
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. |
Re: LED Set method
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 |
| All times are GMT -5. The time now is 11:10. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi