Class LEDIOAddressable

java.lang.Object
com.marslib.hmi.LEDIOAddressable
All Implemented Interfaces:
LEDIO

public class LEDIOAddressable extends Object implements LEDIO
Hardware IO implementation for driving WS2812B Addressable LEDs via a PWM port.
  • Constructor Details

    • LEDIOAddressable

      public LEDIOAddressable(int pwmPort, int length)
  • Method Details

    • setDefaultColors

      public void setDefaultColors()
      Sets the LEDs to their default color state (e.g., solid blue).
      Specified by:
      setDefaultColors in interface LEDIO
    • setLoadSheddingColors

      public void setLoadSheddingColors()
      Sets the LEDs to a load shedding warning color (e.g., solid orange).
      Specified by:
      setLoadSheddingColors in interface LEDIO
    • setCriticalFaultFlash

      public void setCriticalFaultFlash()
      Sets the LEDs to a critical fault warning color (e.g., flashing red).
      Specified by:
      setCriticalFaultFlash in interface LEDIO
    • update

      public void update()
      Periodically updates the underlying LED buffer based on the current state.
      Specified by:
      update in interface LEDIO