Skip to content

Commit e22b038

Browse files
authored
Add missing init-params to Input Devices documentation
1 parent 2ebecc3 commit e22b038

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api_input.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ everyday components. Components must be wired up correctly before use in code.
1616
Button
1717
======
1818

19-
.. autoclass:: Button(pin, pull_up=True, bounce_time=None)
19+
.. autoclass:: Button(pin, pull_up=True, bounce_time=None, hold_time=1, hold_repeat=False)
2020
:members: wait_for_press, wait_for_release, pin, is_pressed, is_held, hold_time, held_time, hold_repeat, pull_up, when_pressed, when_released, when_held
2121

2222

2323
Line Sensor (TRCT5000)
2424
======================
2525

26-
.. autoclass:: LineSensor(pin)
26+
.. autoclass:: LineSensor(pin, queue_len=5, sample_rate=100, threshold=0.5, partial=False)
2727
:members: wait_for_line, wait_for_no_line, pin, line_detected, when_line, when_no_line
2828

2929

0 commit comments

Comments
 (0)