summaryrefslogtreecommitdiff
path: root/decoders/seven_segment/pd.py
AgeCommit message (Collapse)Author
2021-01-13seven_segment: cosmetics in decode(), reduce redundancyGerhard Sittig
"Un-clutter" the decode() routine. Group related instructions to improve readability. Drop redundant statements where common code can handle all cases. Also fixes an unconditional access to the optional decimal point input signal (which had caused a runtime error, and ceased decoding).
2021-01-13seven_segment: document segment layout for awareness during maintenanceGerhard Sittig
Add a comment to the table which maps LED segment combinations to their textual presentation. Mention the table's sort order for awareness, and provide column captions as well as a segment layout illustration to simplify maintenance. The LED segment layout comment was Submitted-by: Ben Gardiner <ben.l.gardiner@gmail.com>
2021-01-13seven_segment: expand to a full alphabetBen Gardiner
Expand the list of characters that will be recognized by the seven segment decoder to include many display character 'encodings.' Including some punctuation characters and tricky letters like W and V. Signed-off-by: Ben Gardiner <ben.l.gardiner@gmail.com> [ gsi: sort by ASCII codes (keep ignoring letter case) ]
2020-11-22seven_segment: add option to display unknown charactersBen Gardiner
option show_unknown=yes will display unknown 7-segment characters as an octothorpe ('#'). Signed-off-by: Ben Gardiner <ben.l.gardiner@gmail.com>
2019-11-06seven_segment: Simplify two code snippets.Uwe Hermann
2019-11-06seven_segment: Initial commit.Benedikt Otto