-
Notifications
You must be signed in to change notification settings - Fork 0
/
5x7_LED_matrix.h
90 lines (72 loc) · 1.96 KB
/
5x7_LED_matrix.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/************************** 5x7 LED Dot Matrix **********************/
/*
14 13 12 11 10 9 8
| | | | | | |
|---------------------|
| |
| |
| |
| |
| |
| |
| |
| |
| |
|---------------------|
HB55701ASR
| | | | | | |
1 2 3 4 5 6 7
Connections :
Arduino 5x7 LED Matrix
2 --> 2
3 --> 3
4 --> 4
5 --> 5
6 --> 6
7 --> 7
8 --> 8
9 --> 9
10 --> 10
11 --> 14
12 --> 1
13 --> 13
Note : Pin no 4 and 11 shorted
Pin no 5 and 12 shorted
Author : Jitender Kumar
email : [email protected]
*/
#include <Arduino.h>
//#define debug
/*
This function make all the LEDs to glow.
*/
void glow_all();
/*
This function make all the LEDs to off.
*/
void off_all();
/*
Pass the index no of the corresponding led from led matrix to make it glow.
The function takes integer no as an argument and will make that Led to glow.
*/
void glow_led(int ledNumber);
/*
Pass the index no of the corresponding led from led matrix to make it off.
The function takes integer no as an argument and will make that Led off.
*/
void off_led(int ledNumber);
/*
*/
void print_pattern(int print_array[7][5]);
/*
*/
void disp_char(char c);
/*
*/
void disp_custom_char(int *arr, int size);
/*
*/
void glow_led_scroll(int);
void off_led_scroll(int);
void glow_matrix_scroll(char);
void disp_char_scroll(char c);