##
-## This file is part of the sigrok project.
+## This file is part of the libsigrokdecode project.
##
## Copyright (C) 2012 Bert Vermeulen <bert@biot.com>
## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de>
self.curdirection = None
self.packets = [] # Local cache of I2C packets
- def start(self, metadata):
- self.out_proto = self.add(srd.OUTPUT_PROTO, 'i2c')
+ def start(self):
+ self.out_proto = self.add(srd.OUTPUT_PYTHON, 'i2c')
if self.options['address'] not in range(0, 127 + 1):
raise Exception('Invalid slave (must be 0..127).')
if self.options['direction'] not in ('both', 'read', 'write'):