Skip to content

Commit 9a02cde

Browse files
committed
docstring update
1 parent 9b5cb1e commit 9a02cde

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

adafruit_nunchuk.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ class Nunchuk:
3939
Class which provides interface to Nintendo Nunchuk controller.
4040
4141
:param i2c: The `busio.I2C` object to use.
42-
:param int address: (optional) The I2C address of the device.
43-
Default is 0x52.
44-
:param float i2c_read_delay: (optional) The time in seconds to pause
45-
between the I2C write and read. This needs to be at least 200us. A
46-
conservative default of 2000us is used since some hosts may not be
47-
able to achieve such timing.
42+
:param address: The I2C address of the device. Default is 0x52.
43+
:type address: int, optional
44+
:param i2c_read_delay: The time in seconds to pause between the
45+
I2C write and read. This needs to be at least 200us. A
46+
conservative default of 2000us is used since some hosts may
47+
not be able to achieve such timing.
48+
:type i2c_read_delay: float, optional
4849
"""
4950

5051
def __init__(self, i2c, address=0x52, i2c_read_delay=0.002):

0 commit comments

Comments
 (0)