Update rpi_gpio.py (#2530)

Should be pullup, since the sensor pulls to ground (at least the one on AndrewHilliday's site)

Or do we want this configurable?
pull/2509/head
Johann Kellerman 2016-07-16 20:10:41 +02:00 committed by Paulus Schoutsen
parent 1877906fdf
commit 06d70544bc
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class RPiGPIOGarageDoor(GarageDoorDevice):
self._relay_pin = relay_pin
self._state_pin = state_pin
rpi_gpio.setup_output(self._relay_pin)
rpi_gpio.setup_input(self._state_pin, 'DOWN')
rpi_gpio.setup_input(self._state_pin, 'UP')
rpi_gpio.write_output(self._relay_pin, True)
@property