Action
Selects the active channel.
Syntax
RB_SELECTCHANNEL channel
Remarks
channel |
A numeric variable or constant that specifies the active channel. The range is from 0-7 |
This statement will set the active channel and initializes the output pin. The channel is a numeric variable in the range from 0-7.
All rainbow commands will work on the active channel. This means that you need to use RB_SelectChannel at least once.
You should not specify undefined channels. Channels are defined with CONFIG RAINBOW
It is NOT required to use RB_SELECTCHANNEL when the channel remains the same. So use it once and only when the channel changes.
See also
CONFIG RAINBOW , RB_ADDCOLOR, RB_ANDCOLOR, RB_ORCOLOR, RB_SUBCOLOR, RB_CLEARSTRIPE , RB_CLEARCOLORS , RB_FILL , RB_FILLCOLORS , RB_FILLSTRIPE , RB_SEND, RB_SETCOLOR , RB_SWAPCOLOR , RB_ROTATELEFT, RB_ROTATERIGHT, RB_SHIFTLEFT, RB_SHIFTRIGHT , RB_CHANGEPIN , RB_SETTABLECOLOR , RB_GETCOLOR , RB_LOOKUPCOLOR , RB_COPY , RB_COLOR
Example
See RB_CHANGEPIN