Package com.marslib.hmi
Interface LEDIO
- All Known Implementing Classes:
LEDIOAddressable,LEDIOCANdle
public interface LEDIO
Hardware abstraction interface for robot LED feedback systems.
Implementations may target WS2812B addressable strips (LEDIOAddressable) or CTRE
CANdle controllers. The LEDManager calls these methods each loop to reflect the robot's
current state (default, load shedding, or critical fault).
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe discrete visual states an LED strip can render. -
Method Summary
Modifier and TypeMethodDescriptionvoidSets the LED strip to a critical fault flash pattern (e.g., flashing red).voidSets the LED strip to its default idle color pattern (e.g., solid team color).voidSets the LED strip to a warning pattern indicating active power load shedding.voidupdate()Pushes the current color buffer to the physical LED hardware.
-
Method Details
-
setDefaultColors
void setDefaultColors()Sets the LED strip to its default idle color pattern (e.g., solid team color). -
setLoadSheddingColors
void setLoadSheddingColors()Sets the LED strip to a warning pattern indicating active power load shedding. -
setCriticalFaultFlash
void setCriticalFaultFlash()Sets the LED strip to a critical fault flash pattern (e.g., flashing red). -
update
void update()Pushes the current color buffer to the physical LED hardware.
-