c4x4rgb 2.0.0.0
Public function

Functions

void c4x4rgb_cfg_setup (c4x4rgb_cfg_t *cfg, drv_logic_t logic_zero, drv_logic_t logic_one, uint8_t select_ctrl_pin)
 Config Object Initialization function.
 
err_t c4x4rgb_init (c4x4rgb_t *ctx, c4x4rgb_cfg_t *cfg)
 Initialization function.
 
err_t c4x4rgb_set_diode (c4x4rgb_t *ctx, uint32_t diode_num, uint32_t diode_color)
 Function for setting color color of one diode.
 
void c4x4rgb_fill_screen (c4x4rgb_t *ctx, uint32_t fill_color)
 Function for filling color of ever diode.
 

Detailed Description

Function Documentation

◆ c4x4rgb_cfg_setup()

void c4x4rgb_cfg_setup ( c4x4rgb_cfg_t * cfg,
drv_logic_t logic_zero,
drv_logic_t logic_one,
uint8_t select_ctrl_pin )

Config Object Initialization function.

This function initializes click configuration structure to init state.

Parameters
cfgClick configuration structure.
logic_zeroFunction pointer for logic zero
logic_oneFunction pointer for logic one
select_ctrl_pinMacro selecting control pin
Note
All used pins will be set to unconnected state.

◆ c4x4rgb_fill_screen()

void c4x4rgb_fill_screen ( c4x4rgb_t * ctx,
uint32_t fill_color )

Function for filling color of ever diode.

This function sets every diode on selected color.

Parameters
ctxClick object.
fill_colorDesired color

◆ c4x4rgb_init()

err_t c4x4rgb_init ( c4x4rgb_t * ctx,
c4x4rgb_cfg_t * cfg )

Initialization function.

This function initializes all necessary pins and peripherals used for this click.

Parameters
ctxClick object.
cfgClick configuration structure.

◆ c4x4rgb_set_diode()

err_t c4x4rgb_set_diode ( c4x4rgb_t * ctx,
uint32_t diode_num,
uint32_t diode_color )

Function for setting color color of one diode.

This function allows to set color of one diode.

Parameters
ctxClick object.
diode_numDesired diode to control
diode_colorDesired color
Returns
  • 0 - Success,
  • -1 - Error.