From: Ben Gardiner Date: Sun, 22 Nov 2020 20:58:15 +0000 (+0000) Subject: seven_segment: expand the alphabet and show unknown characters X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=88bab575e9775f3e371be98d22b491ff257d1001;p=sigrok-test.git seven_segment: expand the alphabet and show unknown characters Signed-off-by: Ben Gardiner --- diff --git a/decoder/test/seven_segment/mystery_message.output b/decoder/test/seven_segment/mystery_message.output new file mode 100644 index 0000000..6c5b702 --- /dev/null +++ b/decoder/test/seven_segment/mystery_message.output @@ -0,0 +1,23 @@ +0-1 seven_segment: decoded-digit: "#" +1-2 seven_segment: decoded-digit: "#" +2-3 seven_segment: decoded-digit: "&" +3-4 seven_segment: decoded-digit: "H" +4-5 seven_segment: decoded-digit: "4" +5-6 seven_segment: decoded-digit: "V" +6-7 seven_segment: decoded-digit: "o" +7-8 seven_segment: decoded-digit: "#" +8-9 seven_segment: decoded-digit: "#" +9-10 seven_segment: decoded-digit: "#" +10-11 seven_segment: decoded-digit: "'" +11-12 seven_segment: decoded-digit: "#" +12-13 seven_segment: decoded-digit: "c" +13-14 seven_segment: decoded-digit: "#" +14-15 seven_segment: decoded-digit: "A" +15-16 seven_segment: decoded-digit: "'" +16-17 seven_segment: decoded-digit: "=" +17-18 seven_segment: decoded-digit: "#" +18-19 seven_segment: decoded-digit: "#" +19-20 seven_segment: decoded-digit: "#" +20-21 seven_segment: decoded-digit: "=" +21-22 seven_segment: decoded-digit: "V" +22-23 seven_segment: decoded-digit: "y" diff --git a/decoder/test/seven_segment/test.conf b/decoder/test/seven_segment/test.conf index 70ff756..06d40fd 100644 --- a/decoder/test/seven_segment/test.conf +++ b/decoder/test/seven_segment/test.conf @@ -12,3 +12,18 @@ test test_7_segment_slow protocol-decoder seven_segment channel a=0 channel b=1 channel c=2 channel d=3 channel e=4 channel f=5 channel g=6 channel dp=7 option polarity=common-anode input display/seven_segment/test_7_segment_slow.sr output seven_segment annotation match test_7_segment_slow.output + +test test_7_segment_slow_with_unknows + protocol-decoder seven_segment channel a=0 channel b=1 channel c=2 channel d=3 channel e=4 channel f=5 channel g=6 channel dp=7 option polarity=common-anode option show_unknown=yes + input display/seven_segment/test_7_segment_slow.sr + output seven_segment annotation match test_7_segment_slow_with_unknowns.output + +test test_7_segment_full_alphabet + protocol-decoder seven_segment channel a=0 channel b=1 channel c=2 channel d=3 channel e=4 channel f=5 channel g=6 option show_unknown=yes + input display/seven_segment/test_7_segment_all_alphabet.sr + output seven_segment annotation match test_7_segment_full_alphabet.output + +test test_7_segment_mystery_message + protocol-decoder seven_segment channel a=0 channel b=1 channel c=2 channel d=3 channel e=4 channel f=5 channel g=6 option show_unknown=yes + input display/seven_segment/mystery_message.sr + output seven_segment annotation match mystery_message.output diff --git a/decoder/test/seven_segment/test_7_segment_0-F.output b/decoder/test/seven_segment/test_7_segment_0-F.output index 367b087..43f8df6 100644 --- a/decoder/test/seven_segment/test_7_segment_0-F.output +++ b/decoder/test/seven_segment/test_7_segment_0-F.output @@ -9,8 +9,8 @@ 8-9 seven_segment: decoded-digit: "8" 9-10 seven_segment: decoded-digit: "9" 10-11 seven_segment: decoded-digit: "A" -11-12 seven_segment: decoded-digit: "B" +11-12 seven_segment: decoded-digit: "b" 12-13 seven_segment: decoded-digit: "C" -13-14 seven_segment: decoded-digit: "D" +13-14 seven_segment: decoded-digit: "d" 14-15 seven_segment: decoded-digit: "E" 15-16 seven_segment: decoded-digit: "F" diff --git a/decoder/test/seven_segment/test_7_segment_full_alphabet.output b/decoder/test/seven_segment/test_7_segment_full_alphabet.output new file mode 100644 index 0000000..4ad218b --- /dev/null +++ b/decoder/test/seven_segment/test_7_segment_full_alphabet.output @@ -0,0 +1,62 @@ +0-1 seven_segment: decoded-digit: "A" +1-2 seven_segment: decoded-digit: "a" +2-3 seven_segment: decoded-digit: "b" +3-4 seven_segment: decoded-digit: "C" +4-5 seven_segment: decoded-digit: "c" +5-6 seven_segment: decoded-digit: "d" +6-7 seven_segment: decoded-digit: "E" +7-8 seven_segment: decoded-digit: "F" +8-9 seven_segment: decoded-digit: "G" +9-10 seven_segment: decoded-digit: "H" +10-11 seven_segment: decoded-digit: "h" +11-12 seven_segment: decoded-digit: "I" +12-13 seven_segment: decoded-digit: "i" +13-14 seven_segment: decoded-digit: "i" +14-15 seven_segment: decoded-digit: "J" +15-16 seven_segment: decoded-digit: "J" +16-17 seven_segment: decoded-digit: "j" +17-18 seven_segment: decoded-digit: "K" +18-19 seven_segment: decoded-digit: "L" +19-20 seven_segment: decoded-digit: "M" +20-21 seven_segment: decoded-digit: "M" +21-22 seven_segment: decoded-digit: "N" +22-23 seven_segment: decoded-digit: "n" +23-24 seven_segment: decoded-digit: "o" +24-25 seven_segment: decoded-digit: "p" +25-26 seven_segment: decoded-digit: "3" +26-27 seven_segment: decoded-digit: "R" +27-28 seven_segment: decoded-digit: "r" +28-29 seven_segment: decoded-digit: "5" +29-30 seven_segment: decoded-digit: "t" +30-31 seven_segment: decoded-digit: "u" +31-32 seven_segment: decoded-digit: "V" +32-33 seven_segment: decoded-digit: "V" +33-34 seven_segment: decoded-digit: "V" +34-35 seven_segment: decoded-digit: "v" +35-36 seven_segment: decoded-digit: "W" +36-37 seven_segment: decoded-digit: "x" +37-38 seven_segment: decoded-digit: "4" +38-39 seven_segment: decoded-digit: "Z" +39-40 seven_segment: decoded-digit: "0" +40-41 seven_segment: decoded-digit: "1" +41-42 seven_segment: decoded-digit: "2" +42-43 seven_segment: decoded-digit: "3" +43-44 seven_segment: decoded-digit: "4" +44-45 seven_segment: decoded-digit: "5" +45-46 seven_segment: decoded-digit: "6" +46-47 seven_segment: decoded-digit: "7" +47-48 seven_segment: decoded-digit: "7" +48-49 seven_segment: decoded-digit: "8" +49-50 seven_segment: decoded-digit: "9" +50-51 seven_segment: decoded-digit: "-" +51-52 seven_segment: decoded-digit: " " +52-53 seven_segment: decoded-digit: "_" +53-54 seven_segment: decoded-digit: "," +54-55 seven_segment: decoded-digit: "." +55-56 seven_segment: decoded-digit: "^" +56-57 seven_segment: decoded-digit: "?" +57-58 seven_segment: decoded-digit: "=" +58-59 seven_segment: decoded-digit: "=" +59-60 seven_segment: decoded-digit: "&" +60-61 seven_segment: decoded-digit: "'" +61-62 seven_segment: decoded-digit: "'" diff --git a/decoder/test/seven_segment/test_7_segment_slow.output b/decoder/test/seven_segment/test_7_segment_slow.output index b4fae6c..e9ccada 100644 --- a/decoder/test/seven_segment/test_7_segment_slow.output +++ b/decoder/test/seven_segment/test_7_segment_slow.output @@ -31,14 +31,16 @@ 214669-224672 seven_segment: decoded-digit: "9" 224672-234675 seven_segment: decoded-digit: "A." 234675-244677 seven_segment: decoded-digit: "A" -244678-254680 seven_segment: decoded-digit: "B." -254680-264682 seven_segment: decoded-digit: "B" -264682-264683 seven_segment: decoded-digit: "B." +244677-244678 seven_segment: decoded-digit: "h." +244678-254680 seven_segment: decoded-digit: "b." +254680-264682 seven_segment: decoded-digit: "b" +264682-264683 seven_segment: decoded-digit: "b." 264683-274686 seven_segment: decoded-digit: "C." 274686-284688 seven_segment: decoded-digit: "C" -284689-294691 seven_segment: decoded-digit: "D." -294691-304693 seven_segment: decoded-digit: "D" -304693-304694 seven_segment: decoded-digit: "D." +284688-284689 seven_segment: decoded-digit: "V." +284689-294691 seven_segment: decoded-digit: "d." +294691-304693 seven_segment: decoded-digit: "d" +304693-304694 seven_segment: decoded-digit: "d." 304694-314697 seven_segment: decoded-digit: "E." 314697-324699 seven_segment: decoded-digit: "E" 324699-334702 seven_segment: decoded-digit: "F." diff --git a/decoder/test/seven_segment/test_7_segment_slow_with_unknowns.output b/decoder/test/seven_segment/test_7_segment_slow_with_unknowns.output new file mode 100644 index 0000000..8f9f6c7 --- /dev/null +++ b/decoder/test/seven_segment/test_7_segment_slow_with_unknowns.output @@ -0,0 +1,54 @@ +0-4612 seven_segment: decoded-digit: "E" +4612-4613 seven_segment: decoded-digit: "E." +4613-14615 seven_segment: decoded-digit: "F." +14615-24617 seven_segment: decoded-digit: "F" +24617-24618 seven_segment: decoded-digit: "F." +24618-34621 seven_segment: decoded-digit: "0." +34621-44623 seven_segment: decoded-digit: "0" +44623-44624 seven_segment: decoded-digit: "#." +44624-54626 seven_segment: decoded-digit: "1." +54626-64628 seven_segment: decoded-digit: "1" +64628-64629 seven_segment: decoded-digit: "7." +64629-74631 seven_segment: decoded-digit: "2." +74631-84634 seven_segment: decoded-digit: "2" +84634-94637 seven_segment: decoded-digit: "3." +94637-104639 seven_segment: decoded-digit: "3" +104639-104640 seven_segment: decoded-digit: "#." +104640-114642 seven_segment: decoded-digit: "4." +114642-124644 seven_segment: decoded-digit: "4" +124644-124645 seven_segment: decoded-digit: "4." +124645-134648 seven_segment: decoded-digit: "5." +134648-144650 seven_segment: decoded-digit: "5" +144650-144651 seven_segment: decoded-digit: "5." +144651-154653 seven_segment: decoded-digit: "6." +154653-164655 seven_segment: decoded-digit: "6" +164655-164656 seven_segment: decoded-digit: "6." +164656-174658 seven_segment: decoded-digit: "7." +174658-184661 seven_segment: decoded-digit: "7" +184661-184662 seven_segment: decoded-digit: "0." +184662-194664 seven_segment: decoded-digit: "8." +194664-204666 seven_segment: decoded-digit: "8" +204666-204667 seven_segment: decoded-digit: "8." +204667-214669 seven_segment: decoded-digit: "9." +214669-224672 seven_segment: decoded-digit: "9" +224672-234675 seven_segment: decoded-digit: "A." +234675-244677 seven_segment: decoded-digit: "A" +244677-244678 seven_segment: decoded-digit: "h." +244678-254680 seven_segment: decoded-digit: "b." +254680-264682 seven_segment: decoded-digit: "b" +264682-264683 seven_segment: decoded-digit: "b." +264683-274686 seven_segment: decoded-digit: "C." +274686-284688 seven_segment: decoded-digit: "C" +284688-284689 seven_segment: decoded-digit: "V." +284689-294691 seven_segment: decoded-digit: "d." +294691-304693 seven_segment: decoded-digit: "d" +304693-304694 seven_segment: decoded-digit: "d." +304694-314697 seven_segment: decoded-digit: "E." +314697-324699 seven_segment: decoded-digit: "E" +324699-334702 seven_segment: decoded-digit: "F." +334702-344704 seven_segment: decoded-digit: "F" +344704-344705 seven_segment: decoded-digit: "F." +344705-354708 seven_segment: decoded-digit: "0." +354708-364710 seven_segment: decoded-digit: "0" +364710-364711 seven_segment: decoded-digit: "#." +364711-374713 seven_segment: decoded-digit: "1."