]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/rgb_led_spi/pd.py
All PDs: Consistently use singular/plural for annotation classes/rows.
[libsigrokdecode.git] / decoders / rgb_led_spi / pd.py
index 95cbf19518fffee852cdb05516d58ba408046c77..82877b393c06627273afa992e6cbb50ccfacd484 100644 (file)
@@ -27,12 +27,16 @@ class Decoder(srd.Decoder):
     desc = 'RGB LED string protocol (RGB values clocked over SPI).'
     license = 'gplv2+'
     inputs = ['spi']
-    outputs = ['rgb_led_spi']
+    outputs = []
+    tags = ['Display']
     annotations = (
-        ('rgb', 'RGB values'),
+        ('rgb', 'RGB value'),
     )
 
     def __init__(self):
+        self.reset()
+
+    def reset(self):
         self.ss_cmd, self.es_cmd = 0, 0
         self.mosi_bytes = []