Skip to content

Commit

Permalink
Merge branch 'delciotorres-fix-505'
Browse files Browse the repository at this point in the history
  • Loading branch information
waveform80 committed Feb 19, 2018
2 parents a4db920 + a7f5cbb commit 179ab51
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gpiozero/input_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,15 +423,19 @@ class MotionSensor(SmoothedInputDevice):
filled with values. Only set this to ``True`` if you require values
immediately after object construction.
:param bool pull_up:
If ``False`` (the default), the GPIO pin will be pulled low by default.
If ``True``, the GPIO pin will be pulled high by the sensor.
:param Factory pin_factory:
See :doc:`api_pins` for more information (this is an advanced feature
which most users can ignore).
"""
def __init__(
self, pin=None, queue_len=1, sample_rate=10, threshold=0.5,
partial=False, pin_factory=None):
partial=False, pull_up=False, pin_factory=None):
super(MotionSensor, self).__init__(
pin, pull_up=False, threshold=threshold,
pin, pull_up=pull_up, threshold=threshold,
queue_len=queue_len, sample_wait=1 / sample_rate, partial=partial,
pin_factory=pin_factory
)
Expand Down

0 comments on commit 179ab51

Please sign in to comment.