public static enum WS281xSpi.Protocol extends Enum<WS281xSpi.Protocol>
| Enum Constant and Description |
|---|
PROTOCOL_400KHZ
400kHz bit encodings:
'0': --________
'1': -----_____
Timing requirements are derived from this document:
http://www.adafruit.com/datasheets/WS2811.pdf
The period is 2.5us, and we use a 10-bit packet for this encoding:
'0': 1100000000 mark: 0.5us, space: 2us
'1': 1111100000 mark: 1.25us, space: 1.25us
|
PROTOCOL_800KHZ
800kHz bit encodings:
'0': ----________
'1': --------____
The period is 1.25us, giving a basic frequency of 800kHz.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFrequency() |
static WS281xSpi.Protocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WS281xSpi.Protocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WS281xSpi.Protocol PROTOCOL_800KHZ
public static final WS281xSpi.Protocol PROTOCOL_400KHZ
public static WS281xSpi.Protocol[] values()
for (WS281xSpi.Protocol c : WS281xSpi.Protocol.values()) System.out.println(c);
public static WS281xSpi.Protocol valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getFrequency()
Copyright © 2016–2018 mattjlewis. All rights reserved.