c4x4rgb 2.0.0.0
|
This file contains API for 4x4 RGB Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | c4x4rgb_t |
Click ctx object definition. More... | |
struct | c4x4rgb_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | C4X4RGB_MAP_MIKROBUS(cfg, mikrobus) |
#define | C4X4RGB_OK 0 |
#define | C4X4RGB_ERROR -1 |
#define | C4X4RGB_CTRL_PIN_IN1 1 |
#define | C4X4RGB_CTRL_PIN_IN2 2 |
#define | C4X4RGB_COLOR_WHITE 0x001F1F1F |
#define | C4X4RGB_COLOR_RED 0x001F0000 |
#define | C4X4RGB_COLOR_GREEN 0x00001F00 |
#define | C4X4RGB_COLOR_BLUE 0x0000001F |
#define | C4X4RGB_COLOR_LIGHT_BLUE 0x00001F1F |
#define | C4X4RGB_COLOR_YELLOW 0x001F1F00 |
#define | C4X4RGB_COLOR_PURPLE 0x001F001F |
Typedefs | |
typedef void(* | drv_logic_t) (void) |
Function pointer for logic level one and zero. | |
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. | |
This file contains API for 4x4 RGB Click driver.