license = 'gplv3+'
inputs = ['i2c']
outputs = ['i2c']
+ tags = ['Util']
options = (
{'id': 'address', 'desc': 'Address to filter out of the I²C stream',
'default': 0},
)
def __init__(self):
+ self.reset()
+
+ def reset(self):
self.curslave = -1
self.curdirection = None
self.packets = [] # Local cache of I²C packets