ER: Configure LED port: EXP Bus Protocol Reference¶
This command is used to configure one of the LED output ports of the expansion board.
Command syntax¶
ER:<port>,<type>,<start>,<count><CR>
<port>¶
The number of the port you want to configure, in hex. Valid ports numbers vary by board type, but there are a maximum of ports per breakout on the board.
<type>¶
Sets the specific type of LEDs in the block. Most serial LEDs can be classified into broad categories by the data protocol used and number of channels.
* 0
WS2812 compatible RGB LEDs
* 1
SK6812 compatible RGBW LEDs
* 2
APA102 compatible RGB LEDs
<start>¶
Sets the index of the first LED allocated to the port. Valid LED indices are 0-127 (0
-7F
hex).
<count>¶
Sets the number of LEDs allocated to the port. Valid LED counts are 0-36 (0
-24
hex).
Returns¶
ER:P
means the port configuration was successful.ER:F
means the port configuration failed.
Examples¶
Define port 2 to include 30 RGBW WS2812 compatible LEDs, starting at index 64:
ER:2,1,40,1E<CR>
N or > jump the next page, P or < for previous, search with S or ?