X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fmlx90614%2Fpd.py;h=fec3334fd81149450943580a1be9e8b52dc87d6a;hp=57c96bce40adfee7ee08a5c4b20bb02626a84fb4;hb=da9bcbd9f45b0153465c55ec726a0d76f6d7f01e;hpb=0169f19c53e195df2f96c4df731ad3214c59e20a diff --git a/decoders/mlx90614/pd.py b/decoders/mlx90614/pd.py index 57c96bc..fec3334 100644 --- a/decoders/mlx90614/pd.py +++ b/decoders/mlx90614/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# Melexis MLX90614 Infrared Thermometer protocol decoder - import sigrokdecode as srd class Decoder(srd.Decoder): @@ -31,20 +29,17 @@ class Decoder(srd.Decoder): license = 'gplv2+' inputs = ['i2c'] outputs = ['mlx90614'] - probes = [] - optional_probes = [] - options = {} - annotations = [ - ['Celsius', 'Temperature in degrees Celsius'], - ['Kelvin', 'Temperature in Kelvin'], - ] + annotations = ( + ('celsius', 'Temperature in degrees Celsius'), + ('kelvin', 'Temperature in Kelvin'), + ) def __init__(self, **kwargs): self.state = 'IGNORE START REPEAT' self.data = [] def start(self): - # self.out_proto = self.register(srd.OUTPUT_PYTHON) + # self.out_python = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) def putx(self, data):