TOP Contributors

  1. MIKROE (2652 codes)
  2. Alcides Ramos (351 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 (136633 times)
  2. FAT32 Library (69841 times)
  3. Network Ethernet Library (55891 times)
  4. USB Device Library (46227 times)
  5. Network WiFi Library (41863 times)
  6. FT800 Library (41087 times)
  7. GSM click (28945 times)
  8. PID Library (26402 times)
  9. mikroSDK (26317 times)
  10. microSD click (25329 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

4DotMatrix click

Rating:

6

Author: MIKROE

Last Updated: 2018-03-14

Package Version: 1.0.0.1

mikroSDK Library: 1.0.0.0

Category: LED matrix

Downloaded: 5842 times

Not followed.

License: MIT license  

4Dot-Matrix R click allows you to display 4 characters of 5x7 dot size. The click is designed to run on either 3.3V or 5V power supply. It communicates with the target microcontroller over I2C interface.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "4DotMatrix click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "4DotMatrix click" changes.

Do you want to report abuse regarding "4DotMatrix click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

4DotMatrix R click

4DotMatrix R click

Native view of the 4DotMatrix R click board.

View full image
4DotMatrix R click

4DotMatrix R click

Front and back view of the 4DotMatrix R click board.

View full image

Library Description

This library contains functionalities for initializing 4DotMatrix click and communication with it. Communication is done with an MCP23017 16 bit I/O expander via I2C interface. MCP23017 directly communicates with an SLx2016 display to show the characters. All the functions work in a similar fashion, in that they send a character, or several of them, to be displayed. It is possible to send single characters on any of the four display positions, a string of characters, or integers in any numeral system. C4DOT_BL_PIN should be either set to high or should be connected to a PWM module, in which case it would be possible to blink the display or change its intensity.

Key functions:

  • void c4dot_init(); - Initialize the click by setting mBUS pin to appropriate logic levels.
  • void c4dot_writeChar(uint8_t charNum, uint8_t charValue); - Writes charValue to the character on the position of charNum.
  • c4dot_writeText(uint8_t *textToWrite); - Writes up to four characters from textToWrite to the display characters

Example description

The application is composed of three sections:

  • System Initialization -  GPIO and I2C module initialization
  • Application Initialization - Click driver init and setting mBus pins to appropriate logic levels
  • Application Task - (code snippet) - text MikroElektronika slides from left to right and the numbers from -20 to 20 are displayed on 4 Dot Matrix click
void applicationTask()
{
 // Slide some text in from the right.
 for (i = 0; i < 21; i++)
 {
 c4dot_writeText(text + i);
 Delay_ms(150);
 }

 // Clear and delay.
 c4dot_clearDisplay();
 Delay_ms(500);

 // Write some numbers on the display.
 for (i = -20; i <= 20; i++)
 {
 c4dot_writeIntDec(i);
 Delay_ms(150);
 }

 // Clear and delay.
 c4dot_clearDisplay();
 Delay_ms(500);

}


Other MikroElektronika libraries used in the example:

  • I2C

Additional notes and information

Depending on the development board you are using, you may need USB UART clickUSB 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

Pressure 2 click

5

Pressure 2 click carries MS5803, a high resolution MEMS pressure sensor with an operating range from 0 to 14 bars. The module comprises a high linear pressure sensor and an ultra low power 24 bit ADC. Pressure 2 click communicates with the target board MCU either through mikroBUS SPI (CS, SCK, SDO, SDI) or I2C lines (SCL, SDA).

[Learn More]

RTC 9 click

5

RTC 9 Click is a real-time clock module which has an extremely low power consumption, allowing it to be used with a single button cell battery, for an extended period of time. This board features the M41T82, real-time clock (RTC) with battery switchover, from ST Microelectronics.

[Learn More]

tRF click

5

This example demonstrates usage of the tRF click board in mikroBUS form factor. Board features Telit's LE70-868 RF module. The example will send the text string via the LE70-868 RF module display the received string on the Lcd.

[Learn More]