c16x12  2.0.0.0
Main Page

16x12 click

16x12 G click carries a 16x12 LED display and the IS31FL3733 matrix driver. The click is designed to run on either 3.3V or 5V power supply.

click Product page


Click library

Software Support

We provide a library for the 16x12 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 16x12 Click driver.

Standard key functions :

Example key functions :

Examples Description

This application draw object with led diodes.

The demo application is composed of two sections :

Application Init

Initialization default device configuration, sets LED mode, configuration ABM and display one character.

void application_init ( void )
{
log_cfg_t log_cfg;
// Logger initialization.
log_cfg.level = LOG_LEVEL_DEBUG;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, "---- Application Init ----" );
// Click initialization.
C16X12_MAP_MIKROBUS( cfg, MIKROBUS_1 );
c16x12_init( &c16x12, &cfg );
Delay_ms( 1000 );
c16x12_default_cfg( &c16x12 );
abm_1.time_1 = C16X12G_ABM_T1_840MS;
abm_1.time_2 = C16X12G_ABM_T2_840MS;
abm_1.time_3 = C16X12G_ABM_T3_840MS;
abm_1.time_4 = C16X12G_ABM_T4_840MS;
abm_1.loop_begin = C16X12G_ABM_LOOP_BEGIN_T1;
abm_1.loop_end = C16X12G_ABM_LOOP_END_T3;
abm_1.loop_times = C16X12G_ABM_LOOP_FOREVER;
abm_2.time_1 = C16X12G_ABM_T1_210MS;
abm_2.time_2 = C16X12G_ABM_T2_0MS;
abm_2.time_3 = C16X12G_ABM_T3_210MS;
abm_2.time_4 = C16X12G_ABM_T4_0MS;
abm_2.loop_begin = C16X12G_ABM_LOOP_BEGIN_T1;
abm_2.loop_end = C16X12G_ABM_LOOP_END_T3;
abm_2.loop_times = C16X12G_ABM_LOOP_FOREVER;
c16x12g_configABM( &c16x12, C16X12G_ABM_NUM_1, &abm_1 );
c16x12g_startABM( &c16x12 );
c16x12g_displayByte( &c16x12, 'G' );
Delay_ms( 11000 );
c16x12g_configABM( &c16x12, C16X12G_ABM_NUM_1, &abm_2 );
c16x12g_startABM( &c16x12 );
}

Application Task

Clear display, display one by one leds, display one character, display image and display text with scroll

void applicationTask ( void )
{
uint8_t cnt = 0;
// Display point
for ( cnt = 1; cnt <= 12; cnt++ )
{
Delay_ms( 200 );
}
Delay_ms( 3000 );
c16x12g_display_byte( &c16x12, 'G' );
Delay_ms( 3000 );
Delay_ms( 3000 );
Delay_ms( 3000 );
c16x12g_display_text( &c16x12, &demo_text[ 0 ], 16, scroll_speed );
}

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:

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.