Example #1
0
 def __init__(self, ret_func=None, threshold=32760, chunk=1024 * 10):
     Switch.__init__(self, ret_func=None)
     self.chunk = chunk
     self.threshold = threshold
Example #2
0
 def __init__(self, ret_func=None, pin=4, bounce_time=400, edge="falling"):
     Switch.__init__(self, ret_func=None)
     self.pin = pin
     self.bounce_time = 400
     self.ret_func = None