RB_SHIFTRIGHT new 2079

Top  Previous  Next

Action

Shift all LED's of the active channel to the right

 

 

Syntax

RB_SHIFTRIGHT 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 right by one position. Width specifies how many LED's , index inclusive, will take part in the shift operation

When you shift information to the RIGHT, the LEFT-most LED will loose it's color information.

Imagine 4 chairs with people on it. When they all stand up and go one place to the right, the person most right will have no chair to sit on. The chair on the left will become empty.

 

 

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_SHIFTLEFT, RB_CHANGEPIN , RB_SETTABLECOLOR , RB_GETCOLOR , RB_LOOKUPCOLOR , RB_COPY , RB_COLOR

 

 

 

 

Example

See RB_CHANGEPIN