makes more sense to have this as debug
This commit is contained in:
parent
f936233244
commit
bdd9874946
|
@ -25,7 +25,7 @@ def lowPassFilter(pin, targetVal, period=0.001):
|
||||||
return GPIO.input(pin) == targetVal
|
return GPIO.input(pin) == targetVal
|
||||||
|
|
||||||
def _initGPIO(name, pin, GPIOEvent, callback):
|
def _initGPIO(name, pin, GPIOEvent, callback):
|
||||||
logger.info('setting up \"%s\" on pin %s', name, pin)
|
logger.debug('starting \"%s\" on pin %s', name, pin)
|
||||||
GPIO.setup(pin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
|
GPIO.setup(pin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
|
||||||
GPIO.add_event_detect(pin, GPIOEvent, callback=callback, bouncetime=500)
|
GPIO.add_event_detect(pin, GPIOEvent, callback=callback, bouncetime=500)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue