c10x10rgb 2.0.0.0

Topics

 MikroBUS
 
 Error Code
 
 Control & Configuration
 
 Colors
 

Macros

#define SELECT_INVERT(pos, x)   ( ( pos == 0 ) ? x : ( 8 - x ) )
 
#define SELECT_ROTATE(pos, x, y)   ( ( pos == 0 ) ? ( 10 * y + x ) : ( 10 * x + y ) )
 
#define SELECT_INV_BYTE_POS(rotate, x)   ( ( ( rotate & 0x11 ) == 0x11 || ( rotate & 0x11 ) == 0x00 ) ? x : ( 9 - x ) )
 

Detailed Description

Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.

Macro Definition Documentation

◆ SELECT_INV_BYTE_POS

#define SELECT_INV_BYTE_POS ( rotate,
x )   ( ( ( rotate & 0x11 ) == 0x11 || ( rotate & 0x11 ) == 0x00 ) ? x : ( 9 - x ) )

◆ SELECT_INVERT

#define SELECT_INVERT ( pos,
x )   ( ( pos == 0 ) ? x : ( 8 - x ) )

◆ SELECT_ROTATE

#define SELECT_ROTATE ( pos,
x,
y )   ( ( pos == 0 ) ? ( 10 * y + x ) : ( 10 * x + y ) )