X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Frgb_led_spi%2Fpd.py;h=c64bd2990a789c0ac1387d7a6d0e41cd33aa3d31;hb=3a9c517e63cfced0470b08a7d8b5fc1006b55e8e;hp=4749e45dd283eb72e60fcab582516b04bda04fe5;hpb=486b19ce017c6663be6574dacd0c823304903bca;p=libsigrokdecode.git diff --git a/decoders/rgb_led_spi/pd.py b/decoders/rgb_led_spi/pd.py index 4749e45..c64bd29 100644 --- a/decoders/rgb_led_spi/pd.py +++ b/decoders/rgb_led_spi/pd.py @@ -14,8 +14,7 @@ ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License -## along with this program; if not, write to the Free Software -## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## along with this program; if not, see . ## import sigrokdecode as srd @@ -25,15 +24,15 @@ class Decoder(srd.Decoder): id = 'rgb_led_spi' name = 'RGB LED (SPI)' longname = 'RGB LED string decoder (SPI)' - desc = 'Generic RGB LED string protocol (RGB values clocked over SPI).' - license = 'gplv2' + desc = 'RGB LED string protocol (RGB values clocked over SPI).' + license = 'gplv2+' inputs = ['spi'] outputs = ['rgb_led_spi'] annotations = ( ('rgb', 'RGB values'), ) - def __init__(self, **kwargs): + def __init__(self): self.ss_cmd, self.es_cmd = 0, 0 self.mosi_bytes = []