Package com.diozero.ws281xj
Enum 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 Summary
Enum Constants Enum Constant Description SK6812_BGRWSK6812_BRGWSK6812_GBRWSK6812_GRBWSK6812_RBGWSK6812_RGBWWS2811_BGRWS2811_BRGWS2811_GBRWS2811_GRBWS2811_RBGWS2811_RGB -
Field Summary
-
Method Summary
Modifier and Type Method Description intgetBlueShift()intgetColourCount()intgetGreenShift()intgetRedShift()intgetWhiteShift()static StripTypevalueOf(String name)Returns the enum constant of this type with the specified name.static StripType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SK6812_RGBW
-
SK6812_RBGW
-
SK6812_GRBW
-
SK6812_GBRW
-
SK6812_BRGW
-
SK6812_BGRW
-
WS2811_RGB
-
WS2811_RBG
-
WS2811_GRB
-
WS2811_GBR
-
WS2811_BRG
-
WS2811_BGR
-
-
Field Details
-
WS2812
-
SK6812
-
SK6812W
-
-
Method Details
-
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
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 nameNullPointerException- 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()
-