c4x4rgb2 2.1.0.0
4x4 RGB 2 Settings

Settings of 4x4 RGB 2 Click driver. More...

Macros

#define C4X4RGB2_FRAME_START   0x00
 4x4 RGB 2 LED frame setting.
 
#define C4X4RGB2_FRAME_END   0xFF
 
#define C4X4RGB2_LED_0   0
 4x4 RGB 2 LED selection values.
 
#define C4X4RGB2_LED_1   1
 
#define C4X4RGB2_LED_2   2
 
#define C4X4RGB2_LED_3   3
 
#define C4X4RGB2_LED_4   4
 
#define C4X4RGB2_LED_5   5
 
#define C4X4RGB2_LED_6   6
 
#define C4X4RGB2_LED_7   7
 
#define C4X4RGB2_LED_8   8
 
#define C4X4RGB2_LED_9   9
 
#define C4X4RGB2_LED_10   10
 
#define C4X4RGB2_LED_11   11
 
#define C4X4RGB2_LED_12   12
 
#define C4X4RGB2_LED_13   13
 
#define C4X4RGB2_LED_14   14
 
#define C4X4RGB2_LED_15   15
 
#define C4X4RGB2_NUM_LEDS   16
 
#define C4X4RGB2_LED_BRIGHTNESS_MIN   0
 4x4 RGB 2 LED brightness setting.
 
#define C4X4RGB2_LED_BRIGHTNESS_DEFAULT   1
 
#define C4X4RGB2_LED_BRIGHTNESS_MAX   31
 
#define C4X4RGB2_LED_BRIGHTNESS_MASK   0xE0
 
#define C4X4RGB2_COLOR_BLACK   0x000000ul
 4x4 RGB 2 24-bit RGB color codes.
 
#define C4X4RGB2_COLOR_WHITE   0xFFFFFFul
 
#define C4X4RGB2_COLOR_RED   0xFF0000ul
 
#define C4X4RGB2_COLOR_LIME   0x00FF00ul
 
#define C4X4RGB2_COLOR_BLUE   0x0000FFul
 
#define C4X4RGB2_COLOR_YELLOW   0xFFFF00ul
 
#define C4X4RGB2_COLOR_CYAN   0x00FFFFul
 
#define C4X4RGB2_COLOR_MAGENTA   0xFF00FFul
 
#define C4X4RGB2_COLOR_SILVER   0xC0C0C0ul
 
#define C4X4RGB2_COLOR_GRAY   0x808080ul
 
#define C4X4RGB2_COLOR_MAROON   0x800000ul
 
#define C4X4RGB2_COLOR_OLIVE   0x808000ul
 
#define C4X4RGB2_COLOR_GREEN   0x008000ul
 
#define C4X4RGB2_COLOR_PURPLE   0x800080ul
 
#define C4X4RGB2_COLOR_TEAL   0x008080ul
 
#define C4X4RGB2_COLOR_NAVY   0x000080ul
 
#define C4X4RGB2_NUM_COLORS   16
 
#define C4X4RGB2_SIZE_COLOR_NAME   32
 
#define C4X4RGB2_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define C4X4RGB2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings of 4x4 RGB 2 Click driver.

Macro Definition Documentation

◆ C4X4RGB2_COLOR_BLACK

#define C4X4RGB2_COLOR_BLACK   0x000000ul

4x4 RGB 2 24-bit RGB color codes.

Specified 24-bit RGB color codes of 4x4 RGB 2 Click driver.

◆ C4X4RGB2_COLOR_BLUE

#define C4X4RGB2_COLOR_BLUE   0x0000FFul

◆ C4X4RGB2_COLOR_CYAN

#define C4X4RGB2_COLOR_CYAN   0x00FFFFul

◆ C4X4RGB2_COLOR_GRAY

#define C4X4RGB2_COLOR_GRAY   0x808080ul

◆ C4X4RGB2_COLOR_GREEN

#define C4X4RGB2_COLOR_GREEN   0x008000ul

◆ C4X4RGB2_COLOR_LIME

#define C4X4RGB2_COLOR_LIME   0x00FF00ul

◆ C4X4RGB2_COLOR_MAGENTA

#define C4X4RGB2_COLOR_MAGENTA   0xFF00FFul

◆ C4X4RGB2_COLOR_MAROON

#define C4X4RGB2_COLOR_MAROON   0x800000ul

◆ C4X4RGB2_COLOR_NAVY

#define C4X4RGB2_COLOR_NAVY   0x000080ul

◆ C4X4RGB2_COLOR_OLIVE

#define C4X4RGB2_COLOR_OLIVE   0x808000ul

◆ C4X4RGB2_COLOR_PURPLE

#define C4X4RGB2_COLOR_PURPLE   0x800080ul

◆ C4X4RGB2_COLOR_RED

#define C4X4RGB2_COLOR_RED   0xFF0000ul

◆ C4X4RGB2_COLOR_SILVER

#define C4X4RGB2_COLOR_SILVER   0xC0C0C0ul

◆ C4X4RGB2_COLOR_TEAL

#define C4X4RGB2_COLOR_TEAL   0x008080ul

◆ C4X4RGB2_COLOR_WHITE

#define C4X4RGB2_COLOR_WHITE   0xFFFFFFul

◆ C4X4RGB2_COLOR_YELLOW

#define C4X4RGB2_COLOR_YELLOW   0xFFFF00ul

◆ C4X4RGB2_FRAME_END

#define C4X4RGB2_FRAME_END   0xFF

◆ C4X4RGB2_FRAME_START

#define C4X4RGB2_FRAME_START   0x00

4x4 RGB 2 LED frame setting.

Specified LED frame setting of 4x4 RGB 2 Click driver.

◆ C4X4RGB2_LED_0

#define C4X4RGB2_LED_0   0

4x4 RGB 2 LED selection values.

Specified LED selection values of 4x4 RGB 2 Click driver.

◆ C4X4RGB2_LED_1

#define C4X4RGB2_LED_1   1

◆ C4X4RGB2_LED_10

#define C4X4RGB2_LED_10   10

◆ C4X4RGB2_LED_11

#define C4X4RGB2_LED_11   11

◆ C4X4RGB2_LED_12

#define C4X4RGB2_LED_12   12

◆ C4X4RGB2_LED_13

#define C4X4RGB2_LED_13   13

◆ C4X4RGB2_LED_14

#define C4X4RGB2_LED_14   14

◆ C4X4RGB2_LED_15

#define C4X4RGB2_LED_15   15

◆ C4X4RGB2_LED_2

#define C4X4RGB2_LED_2   2

◆ C4X4RGB2_LED_3

#define C4X4RGB2_LED_3   3

◆ C4X4RGB2_LED_4

#define C4X4RGB2_LED_4   4

◆ C4X4RGB2_LED_5

#define C4X4RGB2_LED_5   5

◆ C4X4RGB2_LED_6

#define C4X4RGB2_LED_6   6

◆ C4X4RGB2_LED_7

#define C4X4RGB2_LED_7   7

◆ C4X4RGB2_LED_8

#define C4X4RGB2_LED_8   8

◆ C4X4RGB2_LED_9

#define C4X4RGB2_LED_9   9

◆ C4X4RGB2_LED_BRIGHTNESS_DEFAULT

#define C4X4RGB2_LED_BRIGHTNESS_DEFAULT   1

◆ C4X4RGB2_LED_BRIGHTNESS_MASK

#define C4X4RGB2_LED_BRIGHTNESS_MASK   0xE0

◆ C4X4RGB2_LED_BRIGHTNESS_MAX

#define C4X4RGB2_LED_BRIGHTNESS_MAX   31

◆ C4X4RGB2_LED_BRIGHTNESS_MIN

#define C4X4RGB2_LED_BRIGHTNESS_MIN   0

4x4 RGB 2 LED brightness setting.

Specified LED brightness setting of 4x4 RGB 2 Click driver.

◆ C4X4RGB2_NUM_COLORS

#define C4X4RGB2_NUM_COLORS   16

◆ C4X4RGB2_NUM_LEDS

#define C4X4RGB2_NUM_LEDS   16

◆ C4X4RGB2_SET_DATA_SAMPLE_EDGE

#define C4X4RGB2_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE

Data sample selection.

This macro sets data samples for SPI modules.

Note
Available only on Microchip PIC family devices. This macro will set data sampling for all SPI modules on MCU. Can be overwritten with c4x4rgb2_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ C4X4RGB2_SET_DATA_SAMPLE_MIDDLE

#define C4X4RGB2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ C4X4RGB2_SIZE_COLOR_NAME

#define C4X4RGB2_SIZE_COLOR_NAME   32