Docstring format
This commit is contained in:
parent
98da60f350
commit
a0ea61bc1e
@ -163,12 +163,15 @@ class _TrellisKeypad:
|
|||||||
|
|
||||||
class NeoTrellisM4:
|
class NeoTrellisM4:
|
||||||
"""
|
"""
|
||||||
Driver for the Adafruit NeoTrellis
|
Driver for the Adafruit NeoTrellis.
|
||||||
|
|
||||||
:param left_part: if None (or ommitted) the class create a
|
:param left_part: if None (or ommitted) the class create a
|
||||||
neotrellis.multitrellis-compatible object for the left half of the
|
neotrellis.multitrellis-compatible object for the left half of the
|
||||||
TrellisM4 board. Else le right part is created and the arguement
|
TrellisM4 board. Else le right part is created and the arguement
|
||||||
should be the left part object.
|
should be the left part object.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
from neotrellism4 import NeoTrellisM4
|
from neotrellism4 import NeoTrellisM4
|
||||||
@ -234,6 +237,7 @@ class NeoTrellisM4:
|
|||||||
def set_event(self, key, edge, enable):
|
def set_event(self, key, edge, enable):
|
||||||
"""
|
"""
|
||||||
Control which kinds of events are set
|
Control which kinds of events are set
|
||||||
|
|
||||||
:param int key: the key number
|
:param int key: the key number
|
||||||
:param int edge: the type of event
|
:param int edge: the type of event
|
||||||
:param bool enable: True to enable the event, False to disable it
|
:param bool enable: True to enable the event, False to disable it
|
||||||
@ -253,6 +257,7 @@ class NeoTrellisM4:
|
|||||||
def read_keypad(self, num):
|
def read_keypad(self, num):
|
||||||
"""
|
"""
|
||||||
Read data from the keypad
|
Read data from the keypad
|
||||||
|
|
||||||
:param int num: The number of bytes to read
|
:param int num: The number of bytes to read
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user