TOP Contributors

  1. MIKROE (2655 codes)
  2. Alcides Ramos (353 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136767 times)
  2. FAT32 Library (69975 times)
  3. Network Ethernet Library (55944 times)
  4. USB Device Library (46270 times)
  5. Network WiFi Library (41888 times)
  6. FT800 Library (41183 times)
  7. GSM click (28987 times)
  8. PID Library (26414 times)
  9. mikroSDK (26372 times)
  10. microSD click (25381 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

16x12 G click

Rating:

0

Author: MIKROE

Last Updated: 2024-04-03

Package Version: 2.1.0.23

mikroSDK Library: 2.0.0.0

Category: LED matrix

Downloaded: 153 times

Not followed.

License: MIT license  

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.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "16x12 G click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "16x12 G click" changes.

Do you want to report abuse regarding "16x12 G click".

  • mikroSDK Library 1.0.0.0
  • Comments (0)

mikroSDK Library Blog


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.

16x12g_click.png

click Product page


Click library

  • Author : MikroE Team
  • Date : Nov 2019.
  • Type : I2C type

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 :

  • Config Object Initialization function.

    void c16x12_cfg_setup ( c16x12_cfg_t *cfg );

  • Initialization function.

    C16X12_RETVAL c16x12_init ( c16x12_t ctx, c16x12_cfg_t cfg );

  • Click Default Configuration function.

    void c16x12_default_cfg ( c16x12_t *ctx );

Example key functions :

  • Functions for display Image

    void c16x12g_display_image ( c16x12_t ctx, uint16_t pImage );

  • Functions for display one Byte

    void c16x12g_display_byte ( c16x12_t *ctx, char ch );

  • Functions for display text with scroll

    void c16x12g_display_text ( c16x12_t ctx, char p_text, uint8_t n_char, uint8_t speed );

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;
    c16x12_cfg_t cfg;

    /** 
     * Logger initialization.
     * Default baud rate: 115200
     * Default log level: LOG_LEVEL_DEBUG
     * @note If USB_UART_RX and USB_UART_TX 
     * are defined as HAL_PIN_NC, you will 
     * need to define them manually for log to work. 
     * See @b LOG_MAP_USB_UART macro definition for detailed explanation.
     */
    LOG_MAP_USB_UART( log_cfg );
    log_init( &logger, &log_cfg );
    log_info( &logger, "---- Application Init ----" );

    //  Click initialization.

    c16x12_cfg_setup( &cfg );
    C16X12_MAP_MIKROBUS( cfg, MIKROBUS_1 );
    c16x12_init( &c16x12, &cfg );

    c16x12g_device_reset( &c16x12 );
    Delay_ms ( 1000 );

    c16x12_default_cfg( &c16x12 );
    c16x12g_set_global_current_control( &c16x12, 255 );
    c16x12g_set_leds_mode( &c16x12, C16X12G_LED_MODE_ABM1 );

    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 ( 1000 );
    Delay_ms ( 1000 );
    Delay_ms ( 1000 );
    Delay_ms ( 1000 );
    Delay_ms ( 1000 );
    Delay_ms ( 1000 );
    Delay_ms ( 1000 );
    Delay_ms ( 1000 );
    Delay_ms ( 1000 );
    Delay_ms ( 1000 );
    Delay_ms ( 1000 );

    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;

    c16x12g_clear_display( &c16x12 );

    // Display point
    for ( cnt = 1; cnt <= 12; cnt++ )
    {
        c16x12g_set_led( &c16x12, cnt, cnt, C16X12G_LED_STATE_ON, C16X12G_STOP_SETTINGS );
        Delay_ms ( 200 );
    }
    Delay_ms ( 1000 );
    Delay_ms ( 1000 );
    Delay_ms ( 1000 );

    c16x12g_display_byte( &c16x12, 'G' );
    Delay_ms ( 1000 );
    Delay_ms ( 1000 );
    Delay_ms ( 1000 );

    c16x12g_display_image( &c16x12, &demo_image_light[ 0 ] );
    Delay_ms ( 1000 );
    Delay_ms ( 1000 );
    Delay_ms ( 1000 );

    c16x12g_display_image( &c16x12, &demo_image_dark[ 0 ] );
    Delay_ms ( 1000 );
    Delay_ms ( 1000 );
    Delay_ms ( 1000 );

    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:

  • MikroSDK.Board
  • MikroSDK.Log
  • Click.16x12

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.


ALSO FROM THIS AUTHOR

Current Limit 7 click

0

Current Limit 7 Click is a compact add-on board representing a current-limiting solution. This board features the MAX14575A, an adjustable current-limit switch from Analog Devices. This Click board™ features internal current limiting to prevent damage to host devices due to faulty load conditions, has a low 32mΩ on-resistance, and operates from a 2.3V to 5.5V input voltage range. Also, the current limit is adjustable from 250mA to 2.5A programmed through AD5272 digital rheostat and set via onboard range switch. This Click board™ is suitable for applications in portable equipment and condition monitoring or power supplies, protecting them in short circuits or other overload conditions.

[Learn More]

DAC 9 click

5

DAC 9 Click is a compact add-on board that contains a fully-featured, highly accurate digital-to-analog converter. This board features the DAC80501, a 16-bit voltage-output digital-to-analog converter with precision internal reference from Texas Instruments. It supports both I2C and SPI serial interface and offers a linearity of &lt; 1 LSB.

[Learn More]

DIGI POT 12 click

0

DIGI POT 12 Click is a compact add-on board that contains a digitally controlled potentiometer. This board features the AD5142A, a dual-channel, 256-position nonvolatile digital potentiometer from Analog Devices. On this Click board™, two digitally I2C-controlled potentiometers are realized with end-to-end resistance of 10KΩ and wiper resistance of only 40Ω. The DIGI POT 12 Click can be used in potentiometer and linear gain modes.

[Learn More]