c10x10rgb 2.0.0.0
|
Functions | |
void | c10x10rgb_cfg_setup (c10x10rgb_cfg_t *cfg, drv_logic_t logic_zero, drv_logic_t logic_one) |
Config Object Initialization function. | |
C10X10RGB_RETVAL | c10x10rgb_init (c10x10rgb_t *ctx, c10x10rgb_cfg_t *cfg) |
Initialization function. | |
void | c10x10rgb_write_data (c10x10rgb_t *ctx, uint32_t w_data) |
Write data function. | |
void | c10x10rgb_fill_screen (c10x10rgb_t *ctx, uint32_t screen_color) |
Fill screen function. | |
uint32_t | c10x10rgb_make_color (uint8_t red, uint8_t green, uint8_t blue, uint8_t brightness) |
Make color function. | |
void | c10x10rgb_display_image (c10x10rgb_t *ctx, const uint32_t *demo_image) |
Display image function. | |
void | c10x10rgb_display_byte (c10x10rgb_t *ctx, c10x10rgb_byte_t *data_obj) |
Display byte function. | |
void | c10x10rgb_display_string (c10x10rgb_t *ctx, c10x10rgb_byte_t *data_obj, uint8_t len, uint16_t speed_ms) |
Display string function. | |
void | c10x10rgb_demo_rainbow (c10x10rgb_t *ctx, uint8_t brightness, uint16_t speed_ms) |
Demo rainbow function. | |
void c10x10rgb_cfg_setup | ( | c10x10rgb_cfg_t * | cfg, |
drv_logic_t | logic_zero, | ||
drv_logic_t | logic_one ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void c10x10rgb_demo_rainbow | ( | c10x10rgb_t * | ctx, |
uint8_t | brightness, | ||
uint16_t | speed_ms ) |
Demo rainbow function.
c10x10rgb | Click object. |
brightness | Brightness value. |
speed_ms | Millisecond speed value. |
@description This function displays a "rainbow" on the display.
void c10x10rgb_display_byte | ( | c10x10rgb_t * | ctx, |
c10x10rgb_byte_t * | data_obj ) |
Display byte function.
c10x10rgb | Click object. |
data_obj | Data object pointer. |
@description This function displays the specified byte.
void c10x10rgb_display_image | ( | c10x10rgb_t * | ctx, |
const uint32_t * | demo_image ) |
Display image function.
c10x10rgb | Click object. |
demo_image | Demo image address. |
@description This function displays an image from the specified demo_image address.
void c10x10rgb_display_string | ( | c10x10rgb_t * | ctx, |
c10x10rgb_byte_t * | data_obj, | ||
uint8_t | len, | ||
uint16_t | speed_ms ) |
Display string function.
c10x10rgb | Click object. |
data_obj | Data object pointer. |
len | Length value (up to 18 characters). |
speed_ms | Millisecond speed value. |
@description This function displays the specified string.
void c10x10rgb_fill_screen | ( | c10x10rgb_t * | ctx, |
uint32_t | screen_color ) |
Fill screen function.
c10x10rgb | Click object. |
screen_color | Screen color value. |
@description This function fills the whole display with the value: { screen_color }.
C10X10RGB_RETVAL c10x10rgb_init | ( | c10x10rgb_t * | ctx, |
c10x10rgb_cfg_t * | cfg ) |
Initialization function.
c10x10rgb | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint32_t c10x10rgb_make_color | ( | uint8_t | red, |
uint8_t | green, | ||
uint8_t | blue, | ||
uint8_t | brightness ) |
Make color function.
red | Red color value. |
green | Green color value. |
blue | Blue color value. |
brightness | Brightness value. |
@description This function creates a color based on the input color and brightness parameters.
void c10x10rgb_write_data | ( | c10x10rgb_t * | ctx, |
uint32_t | w_data ) |
Write data function.
c10x10rgb | Click object. |
w_data | Write data. |
@description This function writes data to the click module using the GPIO protocol.