Package com.diozero.ws281xj
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 Summary
Enum Constants Enum Constant Description SK6812_BGRW
SK6812_BRGW
SK6812_GBRW
SK6812_GRBW
SK6812_RBGW
SK6812_RGBW
WS2811_BGR
WS2811_BRG
WS2811_GBR
WS2811_GRB
WS2811_RBG
WS2811_RGB
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBlueShift()
int
getColourCount()
int
getGreenShift()
int
getRedShift()
int
getWhiteShift()
static StripType
valueOf(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 Detail
-
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
-
-
Method Detail
-
values
public static StripType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StripType c : StripType.values()) System.out.println(c);
- 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 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()
-
-