Skip to content

Commit

Permalink
feat(utils): Added chatToDigit map inside its own file
Browse files Browse the repository at this point in the history
  • Loading branch information
nachovigilante committed Jul 29, 2022
1 parent 7edebbd commit 93ae528
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/utils/charToDigit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const charToDigit = {
"0": [1, 1, 1, 1, 1, 1, 0],
"1": [0, 1, 1, 0, 0, 0, 0],
"2": [1, 1, 0, 1, 1, 0, 1],
"3": [1, 1, 1, 1, 0, 0, 1],
"4": [0, 1, 1, 0, 0, 1, 1],
"5": [1, 0, 1, 1, 0, 1, 1],
"6": [1, 0, 1, 1, 1, 1, 1],
"7": [1, 1, 1, 0, 0, 0, 0],
"8": [1, 1, 1, 1, 1, 1, 1],
"9": [1, 1, 1, 1, 0, 1, 1],
"@": [1, 1, 1, 1, 1, 0, 1],
a: [1, 1, 1, 0, 1, 1, 1],
b: [0, 0, 1, 1, 1, 1, 1],
c: [1, 0, 0, 1, 1, 1, 0],
d: [0, 1, 1, 1, 1, 0, 1],
e: [1, 0, 0, 1, 1, 1, 1],
f: [1, 0, 0, 0, 1, 1, 1],
"-": [0, 0, 0, 0, 0, 0, 1],
} as { [key: string]: number[] };

export default charToDigit;

0 comments on commit 93ae528

Please sign in to comment.