Skip to content

Commit 8cc5959

Browse files
committed
added comment to credit @tomgidden for his contribution on which the invert function is based
1 parent 34e18ac commit 8cc5959

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Adafruit_LEDBackpack/Adafruit_7Segment.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class SevenSegment:
2929
# Hexadecimal character lookup table (row 1 = 0..9, row 2 = A..F)
3030
DIGITS_NORMAL = [ 0x3F, 0x06, 0x5B, 0x4F, 0x66, 0x6D, 0x7D, 0x07, 0x7F, 0x6F, \
3131
0x77, 0x7C, 0x39, 0x5E, 0x79, 0x71 ]
32+
# inverted table from https://github.com/tomgidden/Adafruit-Raspberry-Pi-Python-Code/commit/87bed18ecc8e251f3c10433d8a31d363dbbd355c
33+
# thx to tomgidden@github for this
3234
DIGITS_INVERTED = [ 0x3F, 0x30, 0x5B, 0x79, 0x74, 0x6D, 0x6F, 0x38, 0x7F, 0x7D, \
3335
0x7E, 0x67, 0x0F, 0x73, 0x4F, 0x4E ]
3436
digits = DIGITS_NORMAL

0 commit comments

Comments
 (0)