Enum StripType

java.lang.Object
java.lang.Enum<StripType>
com.diozero.ws281xj.StripType
All Implemented Interfaces:
Serializable, Comparable<StripType>

public enum StripType
extends Enum<StripType>

Summaries of different LED strip types:

Known to work:

Others:

  • Enum Constant Details

    • SK6812_RGBW

      public static final StripType SK6812_RGBW
    • SK6812_RBGW

      public static final StripType SK6812_RBGW
    • SK6812_GRBW

      public static final StripType SK6812_GRBW
    • SK6812_GBRW

      public static final StripType SK6812_GBRW
    • SK6812_BRGW

      public static final StripType SK6812_BRGW
    • SK6812_BGRW

      public static final StripType SK6812_BGRW
    • WS2811_RGB

      public static final StripType WS2811_RGB
    • WS2811_RBG

      public static final StripType WS2811_RBG
    • WS2811_GRB

      public static final StripType WS2811_GRB
    • WS2811_GBR

      public static final StripType WS2811_GBR
    • WS2811_BRG

      public static final StripType WS2811_BRG
    • WS2811_BGR

      public static final StripType WS2811_BGR
  • Field Details

    • WS2812

      public static final StripType WS2812
    • SK6812

      public static final StripType SK6812
    • SK6812W

      public static final StripType SK6812W
  • Method Details

    • values

      public static StripType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static StripType valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getWhiteShift

      public int getWhiteShift()
    • getRedShift

      public int getRedShift()
    • getGreenShift

      public int getGreenShift()
    • getBlueShift

      public int getBlueShift()
    • getColourCount

      public int getColourCount()