c10x10rgb  2.0.0.0
Main Page

10x10 RGB click

10x10 RGB Click is a matrix of 100 intelligent RGB elements, forming a 10x10 display screen. These LED elements feature internal logic, which allows them to communicate directly with the MCU.

click Product page


Click library

  • Author : MikroE Team
  • Date : Jun 2020.
  • Type : GPIO type

Software Support

We provide a library for the 10x10RGB Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.

Package can be downloaded/installed directly form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.

Library Description

This library contains API for 10x10RGB Click driver.

Standard key functions :

Example key functions :

Examples Description

This example showcases how to initialize, configure and use the 10x10 RGB click module. The

click has a 10 by 10 RGB LED matrix which can be programmed to show different colors or even images. LED elements that form the matrix communicate by a single line with the host MCU.

The demo application is composed of two sections :

Application Init

This function initializes and configures the click board.

void application_init ( void )
{
// Click initialization.
c10x10rgb_cfg_setup( &cfg, &logic_zero, &logic_one );
C10X10RGB_MAP_MIKROBUS( cfg, MIKROBUS_1 );
c10x10rgb_init( &c10x10rgb, &cfg );
Delay_ms ( 1000 );
}

Application Task

This function first displays 3 chars { R, G, B }, the string "MIKROE", the company logo and a rainbow in the end.

void application_task ( void )
{
c10x10rgb_display_byte ( &c10x10rgb, &rgb_data_byte[ 0 ] );
Delay_ms ( 1000 );
c10x10rgb_display_byte ( &c10x10rgb, &rgb_data_byte[ 1 ] );
Delay_ms ( 1000 );
c10x10rgb_display_byte ( &c10x10rgb, &rgb_data_byte[ 2 ] );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
c10x10rgb_display_string( &c10x10rgb, &scroll_data_obj, scroll_data_len, scroll_speed_ms );
Delay_ms ( 1000 );
c10x10rgb_display_image( &c10x10rgb, &MIKROE_IMAGE[ 0 ] );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
c10x10rgb_demo_rainbow( &c10x10rgb, rainbow_brightness, rainbow_speed_ms );
Delay_ms ( 1000 );
}

Note

Make sure the logic delays are defined for your system in the c10x10rgb_delays.h file.

The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.

Other mikroE Libraries used in the example:

  • MikroSDK.Board
  • MikroSDK.Log
  • Click.10x10RGB

Additional notes and informations

Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.


C10X10RGB_COLOR_OFF
#define C10X10RGB_COLOR_OFF
Definition: c10x10rgb.h:150
MIKROE_IMAGE
const uint32_t MIKROE_IMAGE[100]
Definition: main.c:35
c10x10rgb_display_image
void c10x10rgb_display_image(c10x10rgb_t *ctx, const uint32_t *demo_image)
Display image function.
c10x10rgb_fill_screen
void c10x10rgb_fill_screen(c10x10rgb_t *ctx, uint32_t screen_color)
Fill screen function.
c10x10rgb_demo_rainbow
void c10x10rgb_demo_rainbow(c10x10rgb_t *ctx, uint8_t brightness, uint16_t speed_ms)
Demo rainbow function.
application_task
void application_task(void)
Definition: main.c:105
c10x10rgb_display_byte
void c10x10rgb_display_byte(c10x10rgb_t *ctx, c10x10rgb_byte_t *data_obj)
Display byte function.
C10X10RGB_RETVAL
#define C10X10RGB_RETVAL
Definition: c10x10rgb.h:78
c10x10rgb_cfg_t
Click configuration structure definition.
Definition: c10x10rgb.h:220
c10x10rgb_init
C10X10RGB_RETVAL c10x10rgb_init(c10x10rgb_t *ctx, c10x10rgb_cfg_t *cfg)
Initialization function.
c10x10rgb_cfg_setup
void c10x10rgb_cfg_setup(c10x10rgb_cfg_t *cfg, drv_logic_t logic_zero, drv_logic_t logic_one)
Config Object Initialization function.
c10x10rgb_byte_t
Byte object definition.
Definition: c10x10rgb.h:166
application_init
void application_init(void)
Definition: main.c:92
c10x10rgb_t
Click ctx object definition.
Definition: c10x10rgb.h:201
c10x10rgb_display_string
void c10x10rgb_display_string(c10x10rgb_t *ctx, c10x10rgb_byte_t *data_obj, uint8_t len, uint16_t speed_ms)
Display string function.
C10X10RGB_MAP_MIKROBUS
#define C10X10RGB_MAP_MIKROBUS(cfg, mikrobus)
Definition: c10x10rgb.h:65