RB SWAPCOLOR

From MCS Wiki AVR
Jump to: navigation, search

Contents

Action

Exchange color between to LED's of the active channel. This statement will only change the memory.

 

 

Syntax

RB_SWAPCOLOR Led1 , Led2

 

 

Remarks

Led1 , Led2

The index of the LED of the active channel.

 

This statement will swap the color info of the specified LED's.

So after the execution of the statement, LED1 becomes the color of LED2 and LED2 becomes the color of LED1.

This statement operates on the memory, it will not update the LED's.

See also

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_SHIFTRIGHT , RB_CHANGEPIN , RB_SETTABLECOLOR , RB_GETCOLOR , RB_LOOKUPCOLOR


Example

See RB_CHANGEPIN


Languages   English  
Personal tools
Namespaces
Variants
Actions
Navigation
Language