matrixrgb 2.0.0.0
|
This file contains API for Matrix RGB Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | matrixrgb_font_t |
Click ctx object definition. More... | |
struct | matrixrgb_pixel_t |
struct | matrixrgb_cord_t |
struct | matrixrgb_t |
struct | matrixrgb_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | MATRIXRGB_MAP_MIKROBUS(cfg, mikrobus) |
#define | MATRIXRGB_RETVAL uint8_t |
#define | MATRIXRGB_OK 0x00 |
#define | MATRIXRGB_INIT_ERROR 0xFF |
#define | MATRIXRGB_FONT_HORIZONTAL 0 |
#define | MATRIXRGB_FONT_VERTICAL 1 |
#define | MATRIXRGB_FONT_VERTICAL_COLUMN 2 |
#define | MATRIXRGB_PATTERN_1_MAP_5MM 0x00 |
#define | MATRIXRGB_PATTERN_1_MAP_6MM 0x01 |
#define | MATRIXRGB_PATTERN_2H_MAP_5MM 0x02 |
#define | MATRIXRGB_PATTERN_2H_MAP_6MM 0x03 |
#define | MATRIXRGB_PATTERN_2V_MAP_5MM 0x04 |
#define | MATRIXRGB_PATTERN_2V_MAP_6MM 0x05 |
#define | MATRIXRGB_PATTERN_3H_MAP_5MM 0x06 |
#define | MATRIXRGB_PATTERN_3H_MAP_6MM 0x07 |
#define | MATRIXRGB_PATTERN_3V_MAP_5MM 0x08 |
#define | MATRIXRGB_PATTERN_3V_MAP_6MM 0x09 |
#define | MATRIXRGB_PATTERN_4H_MAP_5MM 0x0A |
#define | MATRIXRGB_PATTERN_4H_MAP_6MM 0x0B |
#define | MATRIXRGB_PATTERN_4V_MAP_5MM 0x0C |
#define | MATRIXRGB_PATTERN_4V_MAP_6MM 0x0D |
#define | MATRIXRGB_PATTERN_4S_MAP_5MM 0x0E |
#define | MATRIXRGB_PATTERN_4S_MAP_6MM 0x0F |
Functions | |
void | matrixrgb_cfg_setup (matrixrgb_cfg_t *cfg) |
Config Object Initialization function. | |
MATRIXRGB_RETVAL | matrixrgb_init (matrixrgb_t *ctx, matrixrgb_cfg_t *cfg) |
Initialization function. | |
void | matrixrgb_pattern_settings (matrixrgb_t *ctx, uint8_t pattern_type, uint16_t pattern_delay_us) |
Click Pattern settings ( Default Configuration ) function. | |
void | matrixrgb_generic_transfer (matrixrgb_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | matrixrgb_device_reset (matrixrgb_t *ctx) |
Hard reset of the Matrix RGB click. | |
uint8_t | matrixrgb_device_settings (matrixrgb_t *ctx, uint8_t pattern_id) |
Firmware Initialization. | |
void | matrixrgb_set_power (matrixrgb_t *ctx, uint8_t power_state) |
Set Power. | |
void | matrixrgb_set_brightness (matrixrgb_t *ctx, uint8_t brightness) |
Set Brightness. | |
uint8_t | matrixrgb_write_pixel (matrixrgb_t *ctx, uint16_t x, uint16_t y, uint16_t color) |
Write Pixel. | |
void | matrixrgb_fill_screen (matrixrgb_t *ctx, uint16_t color) |
Fill Screen. | |
void | matrixrgb_draw_image (matrixrgb_t *ctx, const uint8_t *device_img) |
Draw Image on Panel. | |
void | matrixrgb_set_font (matrixrgb_t *ctx, matrixrgb_font_t *font_cfg) |
Set Font Function. | |
uint8_t | matrixrgb_write_text (matrixrgb_t *ctx, char *text, uint16_t x, uint16_t y) |
Writes Text. | |
This file contains API for Matrix RGB Click driver.