TOP Contributors

  1. MIKROE (2656 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 (136822 times)
  2. FAT32 Library (69984 times)
  3. Network Ethernet Library (55965 times)
  4. USB Device Library (46280 times)
  5. Network WiFi Library (41893 times)
  6. FT800 Library (41203 times)
  7. GSM click (28997 times)
  8. PID Library (26420 times)
  9. mikroSDK (26386 times)
  10. microSD click (25383 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

Matrix G click

Rating:

0

Author: MIKROE

Last Updated: 2024-04-03

Package Version: 2.1.0.13

mikroSDK Library: 2.0.0.0

Category: LED matrix

Downloaded: 73 times

Not followed.

License: MIT license  

Matrix G click is a mikroBUS add-on board with two green 5x7 matrices driven by two MAX7219 8-bit LED Display Drivers. The active area of each matrix is 7.62mm high and 5.08 mm wide. 7x5 is a standard resolution for displaying ASCII characters, so the click is essentially a dual-character display capable of showing letters in more readable typefaces compared to a 14-segment display. The click communicates with the target MCU through the mikroBUS SPI interface with two separate Chip Select lines for each matrix (CSL for the left, CSR for the right). This board is designed to use a 5V power supply.

No Abuse Reported

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

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

Do you want to report abuse regarding "Matrix G click".

  • mikroSDK Library 1.0.0.0
  • Comments (0)

mikroSDK Library Blog


Matrix G click

Matrix G click is a mikroBUS add-on board with two green 5x7 matrices driven by two MAX7219 8-bit LED Display Drivers. The active area of each matrix is 7.62mm high and 5.08 mm wide. 7x5 is a standard resolution for displaying ASCII characters, so the click is essentially a dual-character display capable of showing letters in more readable typefaces compared to a 14-segment display. The click communicates with the target MCU through the mikroBUS SPI interface with two separate Chip Select lines for each matrix (CSL for the left, CSR for the right). This board is designed to use a 5V power supply.

matrixg_click.png

click Product page


Click library

  • Author : Jelena Milosavljevic
  • Date : Jun 2021.
  • Type : SPI type

Software Support

We provide a library for the MatrixG 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 from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.

Library Description

This library contains API for MatrixG Click driver.

Standard key functions :

  • matrixg_cfg_setup Config Object Initialization function.

    void matrixg_cfg_setup ( matrixg_cfg_t *cfg );
  • matrixg_init Initialization function.

    MATRIXG_RETVAL matrixg_init ( matrixg_t *ctx, matrixg_cfg_t *cfg );
  • matrixg_default_cfg Click Default Configuration function.

    void matrixg_default_cfg ( matrixg_t *ctx );

Example key functions :

  • matrixg_display_characters This function displays the specified characters on the L/R segments of the click.

    void matrixg_display_characters ( matrixg_t *ctx, uint8_t left_char, uint8_t right_char );
  • matrixg_set_csn_high This function sets the CSN pin output to high.

    void matrixg_set_csn_high ( matrixg_t *ctx );
  • matrixg_set_csn_low This function sets the CSN pin output to low.

    void matrixg_set_csn_low ( matrixg_t *ctx );

Example Description

This example showcases how to prepare the logger and click modules for use and how to display ASCII characters on both of the LED segments of the click.

The demo application is composed of two sections :

Application Init

This function initializes and configures the logger and click modules. After the initialization of the logger module, communication, mikrobus and pin setup, some of the registers are configured in order for the click module to work properly.


void application_init ( ) {

    log_cfg_t log_cfg;
    matrixg_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.

    matrixg_cfg_setup( &cfg );
    MATRIXG_MAP_MIKROBUS( cfg, MIKROBUS_1 );
    matrixg_init( &matrixg, &cfg );
    Delay_ms ( 100 );
    matrixg_default_cfg( &matrixg );
    Delay_ms ( 100 );
}

Application Task

This function displays two strings on each of the LED segments, showing one character every second. It should display " Mikroelektronika" on the left one and "Mikroelektronika " on the right.


void application_task ( ) {

    matrixg_display_characters( &matrixg, ' ', 'M' );
    Delay_ms ( 1000 );
    matrixg_display_characters( &matrixg, 'M', 'i' );
    Delay_ms ( 1000 );
    matrixg_display_characters( &matrixg, 'i', 'k' );
    Delay_ms ( 1000 );
    matrixg_display_characters( &matrixg, 'k', 'r' );
    Delay_ms ( 1000);
    matrixg_display_characters( &matrixg, 'r', 'o' );
    Delay_ms ( 1000 );
    matrixg_display_characters( &matrixg, 'o', 'E' );
    Delay_ms ( 1000 );
    matrixg_display_characters( &matrixg, 'E', 'l' );
    Delay_ms ( 1000 );
    matrixg_display_characters( &matrixg, 'l', 'e' );
    Delay_ms ( 1000 );
    matrixg_display_characters( &matrixg, 'e', 'k' );
    Delay_ms ( 1000 );
    matrixg_display_characters( &matrixg, 'k', 't' );
    Delay_ms ( 1000 );
    matrixg_display_characters( &matrixg, 't', 'r' );
    Delay_ms ( 1000 );
    matrixg_display_characters( &matrixg, 'r', 'o' );
    Delay_ms ( 1000 );
    matrixg_display_characters( &matrixg, 'o', 'n' );
    Delay_ms ( 1000 );
    matrixg_display_characters( &matrixg, 'n', 'i' );
    Delay_ms ( 1000 );
    matrixg_display_characters( &matrixg, 'i', 'k' );
    Delay_ms ( 1000 );
    matrixg_display_characters( &matrixg, 'k', 'a' );
    Delay_ms ( 100 );
    matrixg_display_characters( &matrixg, 'a', ' ' );
    Delay_ms ( 100 );
}

Note

The click has two chips, each controlling one of the LED segments, on and requires you to write data to both at the same time. Writing to one specific chip will not work. If you wish to display characters on a single segment, you have to send ' ' characters to the other segment.

The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.

Other Mikroe Libraries used in the example:

  • MikroSDK.Board
  • MikroSDK.Log
  • Click.MatrixG

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

Cap Touch click

5

Cap Touch click is a capacitive touch sensing button, integrated on a click board. It can be activated by touch.

[Learn More]

EXPAND 6

5

EXPAND 6 Click is a compact add-on board that contains an I2C configurable multi-port I/O expander with independently configurable pins as bi-directional input/outputs or PWM outputs. This board features the CY8C9520A, 20-bit I/O expander with EEPROM, and 4 independently configurable 8-bit PWM outputs from Cypress Semiconductor.

[Learn More]

FTDI click

0

FTDI Click is a compact add-on board that provides a high-speed USB to a serial interface converter. This board features the FT2232H, a 5th-generation high-speed USB 2.0 to a serial UART/I2C/SPI interface converter from FTDI. The entire USB protocol is handled on the chip (FTDI USB drivers required), making this board ideal for various USB applications. Besides a selectable interface and a standalone operation possibility, it also includes an EEPROM which contains the USB configuration descriptors for the FT2232H and one DA converter for additional reference in user-configurable applications.

[Learn More]