Action
Shift all LED's of the active channel to the left
Syntax
RB_SHIFTLEFT Index , Width
Remarks
Index |
A numeric variable or constant that specifies at which position the shift should start. |
Width |
The number of LED's that SHIFT, starting at Index. Width should at least be 1. |
This statement will shift the memory to the left by one position. Width specifies how many LED's , index inclusive, will take part in the shift operation.
When you shift information to the LEFT, the RIGHT-most LED will loose it's color information since it had no LED with data at the right.
Imagine 4 chairs with people on it. When they all stand up and go one place to the left, the person most left will have no chair to sit on. The chair on the right will be empty.
The table below demonstrates a number of operation on a LED stipe of 4 LED's.
LED0 |
LED1 |
LED2 |
LED3 |
OPERATION/RESULT |
|
OPERATION : RB_SHIFTLEFT 0,4 |
|||
|
RESULT |
|||
OPERATION : RB_SHIFTLEFT 0,2 |
||||
RESULT
|
||||
OPERATION : RB_SHIFTLEFT 0,4 |
||||
RESULT |
||||
OPERATION : RB_SHIFTLEFT 1,2 |
||||
See also
CONFIG RAINBOW , RB_ADDCOLOR, RB_ANDCOLOR, RB_ORCOLOR, RB_SUBCOLOR, RB_CLEARSTRIPE , RB_CLEARCOLORS , RB_FILL , RB_FILLCOLORS , RB_FILLSTRIPE , RB_SELECTCHANNEL, RB_SEND, RB_SETCOLOR , RB_SWAPCOLOR , RB_ROTATELEFT, RB_ROTATERIGHT, RB_SHIFTRIGHT , RB_CHANGEPIN , RB_SETTABLECOLOR , RB_GETCOLOR , RB_LOOKUPCOLOR , RB_COPY , RB_COLOR
Example
See RB_CHANGEPIN