UNPKG

real-digital-clock

Version:

Classic 7-segment based real digital clock for react apps!

23 lines (21 loc) 409 B
export const dig: Record<number, string> = { 1: "one", 2: "two", 3: "three", 4: "four", 5: "five", 6: "six", 7: "seven", }; export const encode: Record<number, number[]> = { 0: [1, 2, 3, 5, 6, 7], 1: [3, 6], 2: [1, 3, 4, 5, 7], 3: [1, 3, 4, 6, 7], 4: [2, 4, 3, 6], 5: [1, 2, 4, 6, 7], 6: [1, 2, 5, 4, 6, 7], 7: [1, 3, 6], 8: [1, 2, 3, 4, 5, 6, 7], 9: [1, 2, 3, 4, 6, 7], };