self.out_proto = self.add(srd.OUTPUT_PROTO, 'i2c')
if self.options['address'] not in range(0, 127 + 1):
raise Exception('Invalid slave (must be 0..127).')
self.out_proto = self.add(srd.OUTPUT_PROTO, 'i2c')
if self.options['address'] not in range(0, 127 + 1):
raise Exception('Invalid slave (must be 0..127).')