import sigrokdecode as srd
class Decoder(srd.Decoder):
- api_version = 2
+ api_version = 3
id = 'mlx90614'
name = 'MLX90614'
longname = 'Melexis MLX90614'
- desc = 'Infrared Thermometer protocol.'
+ desc = 'Melexis MLX90614 infrared thermometer protocol.'
license = 'gplv2+'
inputs = ['i2c']
- outputs = ['mlx90614']
+ outputs = []
+ tags = ['IC', 'Sensor']
annotations = (
- ('celsius', 'Temperature in degrees Celsius'),
- ('kelvin', 'Temperature in Kelvin'),
+ ('celsius', 'Temperature / °C'),
+ ('kelvin', 'Temperature / K'),
+ )
+ annotation_rows = (
+ ('temps-celsius', 'Temperature / °C', (0,)),
+ ('temps-kelvin', 'Temperature / K', (1,)),
)
def __init__(self):
+ self.reset()
+
+ def reset(self):
self.state = 'IGNORE START REPEAT'
self.data = []