## 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):
optional_probes = []
options = {}
annotations = [
- ['Celsius', 'Temperature in degrees Celsius'],
- ['Kelvin', 'Temperature in Kelvin'],
+ ['celsius', 'Temperature in degrees Celsius'],
+ ['kelvin', 'Temperature in Kelvin'],
]
def __init__(self, **kwargs):
self.state = 'IGNORE START REPEAT'
self.data = []
- def start(self, metadata):
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'mlx90614')
- self.out_ann = self.add(srd.OUTPUT_ANN, 'mlx90614')
-
- def report(self):
- pass
+ def start(self):
+ # self.out_python = self.register(srd.OUTPUT_PYTHON)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def putx(self, data):
self.put(self.ss, self.es, self.out_ann, data)