TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 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 (137111 times)
  2. FAT32 Library (70239 times)
  3. Network Ethernet Library (56129 times)
  4. USB Device Library (46437 times)
  5. Network WiFi Library (42080 times)
  6. FT800 Library (41394 times)
  7. GSM click (29118 times)
  8. mikroSDK (26566 times)
  9. PID Library (26503 times)
  10. microSD click (25488 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: 5921 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

AudioAmp click

13

AudioAmp click is a mikroBUS add-on board that functions as a mono audio amplifier. It is driven by a Texas Instruments LM48100Q-Q1 Boomer Mono, 1.3W Audio Power Amplifier IC.

[Learn More]

1-Wire I2C click

0

1-Wire I2C click carries DS28E17 1-Wire-to-I2C master bridge from Analog Devices.

[Learn More]

MIC24045 click

0

MIC24045 click carries MIC24045 I2C-programmable, high-efficiency, wide input range, 5A synchronous step-down regulator from Microchip.

[Learn More]