big7seg  2.0.0.0
Main Page

BIG 7-SEG click

BIG 7-SEG R click is what you need if you want to add a seven-segment LED display to your project.

click Product page


Click library

Software Support

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

Standard key functions :

Example key functions :

Examples Description

This application sets seven-segment leds on the display.

The demo application is composed of two sections :

Application Init

Driver initializaion and turning on the display by setting PWM pin to logic 1 and prepare to communcation via SPI.

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.
BIG7SEG_MAP_MIKROBUS( cfg, MIKROBUS_1 );
big7seg_init( &big7seg, &cfg );
big7seg_set7seg( &big7seg );
Delay_100ms( );
}

Application Task

This example shows functionality of the BIG 7-SEG R click, shows number or character on display.

{
uint8_t counter;
big7seg_reset7seg( &big7seg );
big7seg_display_on( &big7seg );
Delay_1sec( );
big7seg_write_data( &big7seg, 0x40 );
Delay_1sec( );
big7seg_write_data_character( &big7seg, 'B' );
Delay_1sec( );
big7seg_write_data_character( &big7seg, 'I' );
Delay_1sec( );
big7seg_write_data_character( &big7seg, 'G' );
Delay_1sec( );
big7seg_write_data( &big7seg, 0x08 );
Delay_1sec( );
big7seg_write_data_number( &big7seg, 7 );
Delay_1sec( );
big7seg_write_data( &big7seg, 0x40 );
Delay_1sec( );
big7seg_write_data_character( &big7seg, 'S' );
Delay_1sec( );
big7seg_write_data_character( &big7seg, 'E' );
Delay_1sec( );
big7seg_write_data_character( &big7seg, 'G' );
Delay_1sec( );
big7seg_write_data( &big7seg, 0x00 );
Delay_1sec( );
for ( counter = 65; counter < 91; counter ++ )
{
big7seg_write_data_character( &big7seg, counter );
Delay_1sec( );
}
big7seg_display_off( &big7seg );
Delay_1sec( );
}

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.