Skip to content

Commit b81b8db

Browse files
author
HackerInside0
committed
Committed release v1.0.0
0 parents  commit b81b8db

36 files changed

+356
-0
lines changed

Changelog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
symbols caption:
2+
> \+ added
3+
> \- removed
4+
> = changed/fixed
5+
> \* coming in a future release
6+
7+
Changelog v1.0.0
8+
9+
> First release

LICENSE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#LICENSE
2+
3+
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a><br />This work by <a xmlns:cc="http://creativecommons.org/ns#" href="https://github.com/HackerInside0/Arduino_sevenSegmentDisplay.git" property="cc:attributionName" rel="cc:attributionURL">Giuseppe Masino</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.<br />Permissions beyond the scope of this license may be available at <a xmlns:cc="http://creativecommons.org/ns#" href="https://facebook.com/peppe.masino1" rel="cc:morePermissions">https://facebook.com/peppe.masino1</a>.
4+
5+
The full license text can be found here: https://creativecommons.org/licenses/by-sa/4.0/legalcode

README.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# sevenSegmentDisplay #
2+
3+
Compatible architecture: ALL
4+
5+
## Description ##
6+
7+
This library allows to drive both common-anode or common-cathode 7 segment displays.
8+
9+
## Sintax & short command reference ##
10+
11+
- **Creating an istance**
12+
13+
`sevenSegmentDisplay name(displayType, A, B, C, D, E, F, G, DP);`
14+
15+
**name** : the name of the object
16+
**displayType** : the type of the display, it can be one of these constants: **COMMON\_ANODE** or **COMMON\_CATHODE**
17+
18+
The arguments from **A** to **G** are the pins were the relative display's segment is attached, **DP** is the decimal point
19+
20+
- **Drawing a symbol on the display**
21+
22+
`name.set(symbol);`
23+
24+
**symbol** : the symbol that will be displayed on the display, it can be one of the alphanumeric characters in the following table:
25+
26+
***N.B: THE LETTERS MUST BE SPECIFIED INTO SINGLE QUOTES*** e.g. `name.set('A');`
27+
28+
| Character | Symbol |
29+
|:---------:|-----------------------------------------------------------------------------------------------------------------|
30+
| 0 |![symbol0](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol0.png) |
31+
| 1 |![symbol1](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol1.png) |
32+
| 2 |![symbol2](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol2.png) |
33+
| 3 |![symbol3](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol3.png) |
34+
| 4 |![symbol4](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol4.png) |
35+
| 5 |![symbol5](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol5.png) |
36+
| 6 |![symbol6](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol6.png) |
37+
| 7 |![symbol7](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol7.png) |
38+
| 8 |![symbol8](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol8.png) |
39+
| 9 |![symbol9](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/sumbol9.png) |
40+
| 'A' |![symbol\_A](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol_A.png)|
41+
| 'b' |![symbol\_b](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol_b.png)|
42+
| 'C' |![symbol\_C](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol_C.png)|
43+
| 'c' |![symbol\_c](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol_c.png)|
44+
| 'd' |![symbol\_d](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol_d.png)|
45+
| 'E' |![symbol\_E](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol_E.png)|
46+
| 'F' |![symbol\_F](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol_F.png)|
47+
| 'H' |![symbol\_H](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol_H.png)|
48+
| 'I' |![symbol\_I](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol_I.png)|
49+
| 'J' |![symbol\_J](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol_J.png)|
50+
| 'L' |![symbol\_L](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol_L.png)|
51+
| 'n' |![symbol\_n](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol_n.png)|
52+
| 'o' |![symbol\_o](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol_o.png)|
53+
| 'P' |![symbol\_P](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol_P.png)|
54+
| 'q' |![symbol\_q](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol_q.png)|
55+
| 'r' |![symbol\_r](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol_r.png)|
56+
| 't' |![symbol\_t](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol_t.png)|
57+
| 'U' |![symbol\_U](https://github.com/HackerInside0/Arduino_sevenSegmentDisplay/blob/master/extras/symbol/symbol_U.png)|
58+
59+
- **Manually setting the display's segments**
60+
61+
`name.setSegment(segment, value);`
62+
63+
**segment** : a letter from **A** to **G** or **DP**, that identify a segment on the display
64+
65+
***N.B: This argument is not case sensitive but, except for DP, THE SEGMENT MUST BE SPECIFIED INTO SINGLE QUOTES*** e.g. `name.setSegment('A');`
66+
67+
**value** : the state of the segment, it can be **HIGH** or **LOW**
68+
69+
- **Turning off the display**
70+
71+
`name.off();`
72+
73+
## About the author & license info
74+
75+
Created by ***Giuseppe Masino, 01 nov 2016***
76+
Author URL: http://www.facebook.com/peppe.masino1
77+
78+
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a><br />This work by <a xmlns:cc="http://creativecommons.org/ns#" href="https://github.com/HackerInside0/Arduino_sevenSegmentDisplay.git" property="cc:attributionName" rel="cc:attributionURL">Giuseppe Masino</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.<br />Permissions beyond the scope of this license may be available at <a xmlns:cc="http://creativecommons.org/ns#" href="https://facebook.com/peppe.masino1" rel="cc:morePermissions">https://facebook.com/peppe.masino1</a>.

extras/symbol/symbol0.png

5.46 KB
Loading

extras/symbol/symbol1.png

2.84 KB
Loading

extras/symbol/symbol2.png

2.88 KB
Loading

extras/symbol/symbol3.png

2.85 KB
Loading

extras/symbol/symbol4.png

2.87 KB
Loading

extras/symbol/symbol5.png

2.85 KB
Loading

extras/symbol/symbol6.png

2.85 KB
Loading

0 commit comments

Comments
 (0)