matrixg 2.0.0.0
|
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.
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.
This library contains API for MatrixG Click driver.
matrixg_cfg_setup
Config Object Initialization function. matrixg_init
Initialization function. matrixg_default_cfg
Click Default Configuration function. matrixg_display_characters
This function displays the specified characters on the L/R segments of the click. matrixg_set_csn_high
This function sets the CSN pin output to high. matrixg_set_csn_low
This function sets the CSN pin output to low. 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 :
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.
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.
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:
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.