]
def __init__(self, **kwargs):
self.state = 'IGNORE START REPEAT'
self.data = []
]
def __init__(self, **kwargs):
self.state = 'IGNORE START REPEAT'
self.data = []
- def start(self, metadata):
- # self.out_proto = self.add(srd.OUTPUT_PROTO, 'mlx90614')
+ def start(self):
+ # self.out_proto = self.add(srd.OUTPUT_PYTHON, 'mlx90614')
kelvin = (self.data[0] | (self.data[1] << 8)) * 0.02
celsius = kelvin - 273.15
self.putx([0, ['Temperature: %3.2f °C' % celsius]])
kelvin = (self.data[0] | (self.data[1] << 8)) * 0.02
celsius = kelvin - 273.15
self.putx([0, ['Temperature: %3.2f °C' % celsius]])