Class Leds

java.lang.Object
frc.spectrumLib.leds.SpectrumLEDs
frc.robot.subsystems.leds.Leds
All Implemented Interfaces:
Subsystem

public class Leds extends SpectrumLEDs
Robot LED subsystem for the 2026 REBUILT season.

Extends SpectrumLEDs to inherit the full pattern library (solid, stripe, blink, breathe, rainbow, chase, bounce, gradient, ombre, wave, countdown, etc.) and the CANdle hardware abstraction. Robot-specific convenience command methods are defined below; bind them via triggers in Robot.java or SuperStructure.

Hardware: CANdle device ID 1 on the CANivore bus, 20-LED RGB external strip at brightness 0.5. LEDs are disabled on signal loss.

  • Field Details

    • NUM_LEDS

      public static final int NUM_LEDS
      Number of external LEDs attached to the CANdle output (indices 8–27 on the device).
      See Also:
    • ledsConfig

      public static final SpectrumLEDs.Config ledsConfig
      Static hardware config. Set startIdx = 8 to address only the external strip (skipping the 8 onboard CANdle LEDs); keep at 0 to address all 20 LEDs starting from the first onboard LED.
  • Constructor Details

    • Leds

      public Leds()
  • Method Details

    • periodic

      public void periodic()