TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (352 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 (136709 times)
  2. FAT32 Library (69922 times)
  3. Network Ethernet Library (55936 times)
  4. USB Device Library (46258 times)
  5. Network WiFi Library (41884 times)
  6. FT800 Library (41146 times)
  7. GSM click (28979 times)
  8. PID Library (26410 times)
  9. mikroSDK (26355 times)
  10. microSD click (25353 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: 5847 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

MRAM 2 click

0

MRAM 2 Click is a compact add-on board for applications that must store and retrieve data and programs quickly using a small number of pins.

[Learn More]

Mikromedia+ for PIC32MX7 - RF Communication Example

5

This is demonstration project how Mikromedia+ for PIC32MX7 communicates over RF. Data is send over simple 'led protocol' (1 byte command). Development board for PIC32 with an add-on board nRF Click is used as a receiver device.

[Learn More]

Accel 30 click

0

Accel 30 Click is a compact add-on board that contains an acceleration sensor. This board features the MC3635, an ultra-low power, low-noise, integrated digital output 3-axis accelerometer from MEMSIC. The MC3635 allows selectable full-scale acceleration measurements in ranges of ±2g, ±4g, ±8g, ±12g, or ±16g in three axes with a configurable host interface that supports both SPI and I2C serial communication. It also supports high-resolution, low-power operating modes and interrupt feature for various events allowing maximum flexibility to meet multiple use case needs.

[Learn More]