X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Frgb_led_spi%2Fpd.py;h=ee94c6bf5382b6b5a666486878217fc9e7a687c6;hb=3b593817d2824d925952c22321ee3ec2442c299c;hp=95cbf19518fffee852cdb05516d58ba408046c77;hpb=b197383cfb39b39ff04644855eef57f5d3c18bc1;p=libsigrokdecode.git diff --git a/decoders/rgb_led_spi/pd.py b/decoders/rgb_led_spi/pd.py index 95cbf19..ee94c6b 100644 --- a/decoders/rgb_led_spi/pd.py +++ b/decoders/rgb_led_spi/pd.py @@ -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'), ) def __init__(self): + self.reset() + + def reset(self): self.ss_cmd, self.es_cmd = 0, 0 self.mosi_bytes = []