]> sigrok.org Git - sigrok-test.git/commitdiff
Tests for max7219 PD
authorPaul "LeoNerd" Evans <redacted>
Wed, 4 Nov 2015 16:22:58 +0000 (16:22 +0000)
committerPaul "LeoNerd" Evans <redacted>
Wed, 4 Nov 2015 16:22:58 +0000 (16:22 +0000)
decoder/test/max7219/max7219_digit.output [new file with mode: 0644]
decoder/test/max7219/max7219_register.output [new file with mode: 0644]
decoder/test/max7219/max7219_warnings.output [new file with mode: 0644]
decoder/test/max7219/test.conf [new file with mode: 0644]

diff --git a/decoder/test/max7219/max7219_digit.output b/decoder/test/max7219/max7219_digit.output
new file mode 100644 (file)
index 0000000..a564b78
--- /dev/null
@@ -0,0 +1,20 @@
+22795-23867 max7219: digit: "Digit 1: 0F"
+24340-25412 max7219: digit: "Digit 2: 0F"
+25755-26827 max7219: digit: "Digit 3: 0F"
+26975-28047 max7219: digit: "Digit 4: 0F"
+28057-29129 max7219: digit: "Digit 5: 0F"
+29256-30328 max7219: digit: "Digit 6: 0F"
+30535-31607 max7219: digit: "Digit 7: 0F"
+32008-33080 max7219: digit: "Digit 8: 0F"
+2642937-2644009 max7219: digit: "Digit 1: 04"
+2644216-2645288 max7219: digit: "Digit 2: 01"
+2645301-2646373 max7219: digit: "Digit 4: 03"
+2646751-2647823 max7219: digit: "Digit 5: 02"
+2648523-2649595 max7219: digit: "Digit 7: 00"
+2649690-2650762 max7219: digit: "Digit 8: 01"
+4651894-4652966 max7219: digit: "Digit 1: 05"
+4653290-4654363 max7219: digit: "Digit 2: 01"
+4654743-4655815 max7219: digit: "Digit 4: 03"
+4656242-4657315 max7219: digit: "Digit 5: 02"
+4657743-4658815 max7219: digit: "Digit 7: 00"
+4659241-4660313 max7219: digit: "Digit 8: 01"
diff --git a/decoder/test/max7219/max7219_register.output b/decoder/test/max7219/max7219_register.output
new file mode 100644 (file)
index 0000000..2fad297
--- /dev/null
@@ -0,0 +1,7 @@
+9849-10920 max7219: register: "Decode: 0b11111111"
+11375-12447 max7219: register: "Intensity: 4"
+12888-13961 max7219: register: "Scan limit: 8"
+19845-20917 max7219: register: "Shutdown: off"
+21295-22367 max7219: register: "Display test: on"
+436071-437143 max7219: register: "Intensity: 6"
+2640525-2641597 max7219: register: "Display test: off"
diff --git a/decoder/test/max7219/max7219_warnings.output b/decoder/test/max7219/max7219_warnings.output
new file mode 100644 (file)
index 0000000..bf7d1c3
--- /dev/null
@@ -0,0 +1,3 @@
+233663-234716 max7219: warnings: "Short write"
+435503-437646 max7219: warnings: "Overlong write"
+637944-639016 max7219: warnings: "Unknown register 0D"
diff --git a/decoder/test/max7219/test.conf b/decoder/test/max7219/test.conf
new file mode 100644 (file)
index 0000000..c14d6b0
--- /dev/null
@@ -0,0 +1,8 @@
+test max7219
+        protocol-decoder spi channel miso=0 channel cs=1 channel mosi=2 channel clk=3
+        protocol-decoder max7219
+        stack spi max7219
+        input spi/max7219/max7219.sr
+        output max7219 annotation class register match max7219_register.output
+        output max7219 annotation class digit match max7219_digit.output
+        output max7219 annotation class warnings match max7219_warnings.output