]> sigrok.org Git - sigrok-test.git/commitdiff
seven_segment: expand the alphabet and show unknown characters
authorBen Gardiner <redacted>
Sun, 22 Nov 2020 20:58:15 +0000 (20:58 +0000)
committerGerhard Sittig <redacted>
Wed, 13 Jan 2021 19:27:38 +0000 (20:27 +0100)
Signed-off-by: Ben Gardiner <redacted>
decoder/test/seven_segment/mystery_message.output [new file with mode: 0644]
decoder/test/seven_segment/test.conf
decoder/test/seven_segment/test_7_segment_0-F.output
decoder/test/seven_segment/test_7_segment_full_alphabet.output [new file with mode: 0644]
decoder/test/seven_segment/test_7_segment_slow.output
decoder/test/seven_segment/test_7_segment_slow_with_unknowns.output [new file with mode: 0644]

diff --git a/decoder/test/seven_segment/mystery_message.output b/decoder/test/seven_segment/mystery_message.output
new file mode 100644 (file)
index 0000000..6c5b702
--- /dev/null
@@ -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"
index 70ff756dada51bb3b58921fc1ca6f718979267e5..06d40fddbe987017afabbcc54696ad8a4b725be1 100644 (file)
@@ -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
index 367b087a6ade61570d4efd5176e4370c03ea5f58..43f8df6ae6241e46961e5657d4db32c6b36c718e 100644 (file)
@@ -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 (file)
index 0000000..4ad218b
--- /dev/null
@@ -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: "'"
index b4fae6c857de35026b2fd7ae2c447d6954c25109..e9ccada41c457f98919d0f391d02cc43c32272ba 100644 (file)
 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 (file)
index 0000000..8f9f6c7
--- /dev/null
@@ -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."