Skip to content

Commit b40cdbc

Browse files
author
Adam Patt
committed
update docstring
1 parent 4efb124 commit b40cdbc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

simpleio.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ class DigitalOut:
232232
"""
233233
def __init__(self, pin, value=None, drive_mode=None):
234234
"""
235+
value and drive_mode: if passed in will be passed to switch_to_output
236+
see digitalio.DigitalInOut.switch_to_output for more details
235237
"""
236238
kwargs = {k: v for k, v in (('value', value), ('drive_mode', drive_mode)) if not v is None}
237239
self.iopin = digitalio.DigitalInOut(pin)
@@ -251,6 +253,10 @@ class DigitalIn:
251253
Simple digital input that is valid until soft reset.
252254
"""
253255
def __init__(self, pin, pull=None):
256+
"""
257+
pull: if passed in will be passed to switch_to_input
258+
see digitalio.DigitalInOut.switch_to_input for more details
259+
"""
254260
kwargs = {k: v for k, v in (('pull', pull),) if not v is None}
255261
self.iopin = digitalio.DigitalInOut(pin)
256262
self.iopin.switch_to_input(**kwargs)

0 commit comments

Comments
 (0)