Skip to content

Commit 88b14e8

Browse files
authored
feat(7segment-element): add 3 digits variant (#131)
1 parent 67c169d commit 88b14e8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/7segment-element.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,22 @@ export class SevenSegmentElement extends LitElement {
6969
{ name: 'CLN', ...pinXY(8), signals: [], description: 'Colon' },
7070
];
7171

72+
case 3:
73+
// Pinout based on SP420281N model
74+
return [
75+
{ name: 'A', ...pinXY(11), signals: [], description: 'Segment A' },
76+
{ name: 'B', ...pinXY(7), signals: [], description: 'Segment B' },
77+
{ name: 'C', ...pinXY(4), signals: [], description: 'Segment C' },
78+
{ name: 'D', ...pinXY(2), signals: [], description: 'Segment D' },
79+
{ name: 'E', ...pinXY(1), signals: [], description: 'Segment E' },
80+
{ name: 'F', ...pinXY(10), signals: [], description: 'Segment F' },
81+
{ name: 'G', ...pinXY(5), signals: [], description: 'Segment G' },
82+
{ name: 'DP', ...pinXY(3), signals: [], description: 'Decimal Point' },
83+
{ name: 'DIG1', ...pinXY(12), signals: [], description: 'Digit 1 Common' },
84+
{ name: 'DIG2', ...pinXY(9), signals: [], description: 'Digit 2 Common' },
85+
{ name: 'DIG3', ...pinXY(8), signals: [], description: 'Digit 3 Common' },
86+
];
87+
7288
case 2:
7389
// Pinout based on CL5621C model
7490
return [

0 commit comments

Comments
 (0)