TOP Contributors

  1. MIKROE (2784 codes)
  2. Alcides Ramos (405 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (133 codes)
  5. Bugz Bensce (97 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 (141361 times)
  2. FAT32 Library (74205 times)
  3. Network Ethernet Library (58776 times)
  4. USB Device Library (48854 times)
  5. Network WiFi Library (44564 times)
  6. FT800 Library (44149 times)
  7. GSM click (30883 times)
  8. mikroSDK (29739 times)
  9. PID Library (27372 times)
  10. microSD click (27309 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 R Click

Rating:

0

Author: MIKROE

Last Updated: 2024-10-31

Package Version: 2.1.0.15

mikroSDK Library: 2.0.0.0

Category: LED matrix

Downloaded: 308 times

Not followed.

License: MIT license  

Matrix R Click is a mikroBUS add-on board with two red 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:tm: 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 R Click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Matrix R Click" changes.

Do you want to report abuse regarding "Matrix R Click".

  • mikroSDK Library 1.0.0.0
  • Comments (0)

mikroSDK Library Blog


Matrix R Click

Matrix R Click is a mikroBUS add-on board with two red 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:tm: 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.

matrixr_click.png

Click Product page


Click library

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

Software Support

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

Standard key functions :

  • matrixr_cfg_setup Config Object Initialization function.

    void matrixr_cfg_setup ( matrixr_cfg_t *cfg );
  • matrixr_init Initialization function.

    MATRIXR_RETVAL matrixr_init ( matrixr_t *ctx, matrixr_cfg_t *cfg );
  • matrixr_default_cfg Click Default Configuration function.

    void matrixr_default_cfg ( matrixr_t *ctx );

Example key functions :

  • matrixr_display_characters This function displays the specified characters on the L/R segments of the Click.

    void matrixr_display_characters ( matrixr_t *ctx, uint8_t left_char, uint8_t right_char );
  • matrixr_set_csn_high This function sets the CSN pin output to high.

    void matrixr_set_csn_high ( matrixr_t *ctx );
  • matrixr_set_csn_low This function sets the CSN pin output to low.

    void matrixr_set_csn_low ( matrixr_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;
    matrixr_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.

    matrixr_cfg_setup( &cfg );
    MATRIXR_MAP_MIKROBUS( cfg, MIKROBUS_1 );
    matrixr_init( &matrixr, &cfg );
    Delay_ms ( 100 );
    matrixr_default_cfg( &matrixr );
    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 ( ) {

    matrixr_display_characters( &matrixr, ' ', 'M' );
    Delay_ms ( 1000 );
    matrixr_display_characters( &matrixr, 'M', 'i' );
    Delay_ms ( 1000 );
    matrixr_display_characters( &matrixr, 'i', 'k' );
    Delay_ms ( 1000 );
    matrixr_display_characters( &matrixr, 'k', 'r' );
    Delay_ms ( 1000);
    matrixr_display_characters( &matrixr, 'r', 'o' );
    Delay_ms ( 1000 );
    matrixr_display_characters( &matrixr, 'o', 'E' );
    Delay_ms ( 1000 );
    matrixr_display_characters( &matrixr, 'E', 'l' );
    Delay_ms ( 1000 );
    matrixr_display_characters( &matrixr, 'l', 'e' );
    Delay_ms ( 1000 );
    matrixr_display_characters( &matrixr, 'e', 'k' );
    Delay_ms ( 1000 );
    matrixr_display_characters( &matrixr, 'k', 't' );
    Delay_ms ( 1000 );
    matrixr_display_characters( &matrixr, 't', 'r' );
    Delay_ms ( 1000 );
    matrixr_display_characters( &matrixr, 'r', 'o' );
    Delay_ms ( 1000 );
    matrixr_display_characters( &matrixr, 'o', 'n' );
    Delay_ms ( 1000 );
    matrixr_display_characters( &matrixr, 'n', 'i' );
    Delay_ms ( 1000 );
    matrixr_display_characters( &matrixr, 'i', 'k' );
    Delay_ms ( 1000 );
    matrixr_display_characters( &matrixr, 'k', 'a' );
    Delay_ms ( 100 );
    matrixr_display_characters( &matrixr, '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.MatrixR

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

3D Hall 11 Click

0

3D Hall 11 Click is a compact add-on board used to detect the strength of a magnetic field in all three dimensions. This board features the TMAG5273, a low-power linear 3D Hall-effect sensor from Texas Instruments. A precision analog signal chain alongside an integrated 12-bit ADC digitizes the measured analog magnetic field values and passes them via the I2C interface to the microcontroller for further processing. It can achieve ultra-high precision at speeds up to 20kSPS for faster and more accurate real-time control and has an integrated temperature sensor available for multiple system functions.

[Learn More]

DC Motor 20 Click

0

DC Motor 20 Click is a compact add-on board that contains a brushed DC motor driver. This board features the TC78H651AFNG, a dual H-bridge driver for one or two DC brushed motors, which incorporates DMOS with low ON resistance in output transistors from Toshiba Semiconductor.

[Learn More]

ECG 7 Click

0

ECG 7 Click is a compact add-on board that records the heart's electrical activity. This board features the MCP6N16, a single zero-drift instrumentation amplifier with selectable gain from Microchip. In addition to the jack connector provided for connecting the cable with ECG electrodes, this Click boardâ„¢ offers the possibility of connecting electrodes through screw terminals or an onboard header if the electrode connection does not match the jack connector. Besides, the user is allowed to process the output signal in analog or digital form.

[Learn More]