Skip to content

Instantly share code, notes, and snippets.

@colinvh
Created September 9, 2015 20:09
Show Gist options
  • Save colinvh/f4b31161da070fbc41ec to your computer and use it in GitHub Desktop.
Save colinvh/f4b31161da070fbc41ec to your computer and use it in GitHub Desktop.
7-segment display tables
Dec 7-Seg
0 126
1 48
2 109
3 121
4 51
5 91
6 95
7 112
8 127
9 123
seven = [126, 48, 109, 121, 51, 91, 95, 112, 127, 123];
sevenLookup = {};
for (var i = 0; i < 10; i++) sevenLookup[seven[i]] = i;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment