c4x4rgb 2.0.0.0
|
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. | |
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.
cfg | Click configuration structure. |
logic_zero | Function pointer for logic zero |
logic_one | Function pointer for logic one |
select_ctrl_pin | Macro selecting control pin |
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.
ctx | Click object. |
fill_color | Desired color |
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.
ctx | Click object. |
cfg | Click configuration structure. |
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.
ctx | Click object. |
diode_num | Desired diode to control |
diode_color | Desired color |
0
- Success, -1
- Error.