]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/max7219/pd.py
decoders: Fix incorrect 'outputs' fields.
[libsigrokdecode.git] / decoders / max7219 / pd.py
index 76b9b1ce81d54e59e9d50081d6b4120028d227e3..53067a679f060b7c3964f746aa0648585a9e6130 100644 (file)
@@ -45,10 +45,11 @@ class Decoder(srd.Decoder):
     id = 'max7219'
     name = 'MAX7219'
     longname = 'Maxim MAX7219/MAX7221'
     id = 'max7219'
     name = 'MAX7219'
     longname = 'Maxim MAX7219/MAX7221'
-    desc = '8-digit LED display driver.'
+    desc = 'Maxim MAX72xx series 8-digit LED display driver.'
     license = 'gplv2+'
     inputs = ['spi']
     license = 'gplv2+'
     inputs = ['spi']
-    outputs = ['max7219']
+    outputs = []
+    tags = ['Display']
     annotations = (
         ('register', 'Registers written to the device'),
         ('digit', 'Digits displayed on the device'),
     annotations = (
         ('register', 'Registers written to the device'),
         ('digit', 'Digits displayed on the device'),
@@ -59,6 +60,12 @@ class Decoder(srd.Decoder):
         ('warnings', 'Warnings', (ann_warning,)),
     )
 
         ('warnings', 'Warnings', (ann_warning,)),
     )
 
+    def __init__(self):
+        self.reset()
+
+    def reset(self):
+        pass
+
     def start(self):
         self.out_ann = self.register(srd.OUTPUT_ANN)
         self.pos = 0
     def start(self):
         self.out_ann = self.register(srd.OUTPUT_ANN)
         self.pos = 0