If you're using java, or don't mind converting some simple code,
here is our source code for the non-addressable LEDs. Most of the methods are just one or two functional lines; only setAllianceColors() is longer. Our LED strips have a common positive line and separate negative lines for the red, green, and blue elements. We have connected these four wires to the four motor outputs of two spike relays. Here's the mapping for the code as found at the link:
- Common: M- output of spike on relay port 2
- Blue negative: M+ output of spike on relay port 2
- Green negative: M- output of spike on relay port 3
- Red negative: M+ ouput of spike on relay port 3
If you use LED strips with common negative line, swap all the kOffs for kOns and all the kReverses with kForwards.