4Dot-Matrix R click
PID: MIKROE-2706
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, with
additional functionality provided by the following pins on the mikroBUS™ line: RST, CS, PWM.
How 4Dot‐Matrix R click works
The SLO2016 module is paired up with the MCP23017 I2C port expander for easier use and
minimal command lines.
Data is sent via the I2C expander. D0-D6 are used to select ASCII character from internal
memory. A0 and A1 bits are used to select which place takes which character (1,2,3,4).
Detailed instructions are provided in the modules datasheet. The PWM pin is intended for
blanking the display, and it can also be used for dimming the display.
The CLR function clears the ASCII characters RAM.
SLO2016 features
SLO2016 is a 4-Digit 5x7 Dot Matrix Alphanumeric
intelligent display,
with many built-in
functions that will save your time. The integrated circuit contains memory, a 128 ASCII ROM
decoder, multiplexing circuitry and drivers.
The character set consists of
128 special ASCII characters
for English, German, Italian,
Swedish, Danish, and Norwegian. So, you don't need to build a character set yourself.
You also have direct access to each digit independently and asynchronously.
Specifications
Type
Applications
On‐board
modules
Key Features
LED Matrix
4 characters of 5x7 dots display to your device
SLO2016 5 x 7 dot matrix display, MCP23017 port expander
Built‐in Memory, Built‐in Character Generator, Built‐in Multiplex and LED Drive
Circuitry, Superior ESD Immunity, readability up to eight feet (2.5m)
128 Special ASCII Characters for English, German, Italian, Swedish, Danish, and
Norwegian.
I2C
3.3V or 5V
Key Benefits
Interface
Input Voltage
Click board size M (42.9 x 25.4 mm)
Pinout diagram
This table shows how the pinout on 4Dot‐Matrix R click corresponds to the pinout on the
mikroBUS™ socket (the latter shown in the two middle columns).
Notes
Pin
Pin
1 AN
Notes
NC
PWM 16
PWM
Display blanking and PWM
15 NC
14 NC
13 NC
I2C clock
Clear module RAM
RST
2 RST INT
NC
3 CS
TX
NC
4 SCK RX
NC
5 MISO SCL 12
SCL
NC
Power supply
Ground
6 MOSI SDA 11
SDA
I2C data
10
+5V
Power supply
+3.3V
7 3.3V 5V
GND
8 GND GND 9
GND
Ground
Jumpers and settings
Designator
Name
0
Default
Position
0
5V
Default
Option
Description
I2C slave address selection
Logic Level Voltage Selection 3V3/5V, left
position 3V3, right position 5V
ADDR SEL A0/A1/A2
LOG SEL
Interface power
supply
4Dot-Matrix R click features a jumper for setting the voltage logic level. By default, it's soldered
to a 5V position.
Programming
Code examples for 4Dot-Matrix R click, written for MikroElektronika hardware and compilers
are available on Libstock.
Code snippet
This code snippet demonstrates the usage of a 4DotMatrix R click on EasyMx PRO v7 for
STM32 ARM with STM32F107VCT6 .
After the initialization, several pieces of text are displayed in a loop, showing the functionalities
of the click board and its library. First, some text is slid in from the right. Next, a sequence of
numbers is displayed in succession. Finally, the display is faded out and in using PWM.
01:
02:
03:
04:
05:
06:
07:
08:
09:
10:
11:
12:
13:
14:
15:
16:
...
// Main function.
void
main()
{
int8_t
i;
uint8_t
length;
// Initialize the system.
systemInit();
length
=
strlen(text)
-
3;
while
(1)
{
// Slide some text in from the right.
for
(i
=
0;
i
<
length; i++)
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
}
{
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);
// Fade some text out and in.
C4DOT_writeIntDec(1234);
for
(i
=
50;
i
>=
0;
i--)
{
PWM_TIM2_Set_Duty(
(pwmPeriod
/
50)
*
i, _PWM_NON_INVERTED, _PWM_CHANNEL1);
Delay_ms(50);
}
for
(i
=
0;
i
<=
50;
i++)
{
PWM_TIM2_Set_Duty(
(pwmPeriod
/
50)
*
i, _PWM_NON_INVERTED, _PWM_CHANNEL1);
Delay_ms(50);
}
// Clear and delay.
C4DOT_clearDisplay();
Delay_ms(500);
}
https://shop.mikroe.com/4dot‐matrix‐r‐click 8‐2‐17