@@ -228,14 +228,13 @@ def deinit(self):
228
228
229
229
class DigitalOut :
230
230
"""
231
- Simple digital output that is valid until soft reset.
231
+ Simple digital output that is valid until reload.
232
+
233
+ :param pin microcontroller.Pin: output pin
234
+ :param value bool: default value
235
+ :param drive_mode digitalio.DriveMode: drive mode for the output
232
236
"""
233
237
def __init__ (self , pin , ** kwargs ):
234
- """
235
- kwargs will be passed directly to switch_to_output
236
- value (bool): default value to set upon switching
237
- drive_mode (DriveMode): drive mode for the output
238
- """
239
238
self .iopin = digitalio .DigitalInOut (pin )
240
239
self .iopin .switch_to_output (** kwargs )
241
240
@@ -250,13 +249,12 @@ def value(self, value):
250
249
251
250
class DigitalIn :
252
251
"""
253
- Simple digital input that is valid until soft reset.
252
+ Simple digital input that is valid until reload.
253
+
254
+ :param pin microcontroller.Pin: input pin
255
+ :param pull digitalio.Pull: pull configuration for the input
254
256
"""
255
257
def __init__ (self , pin , ** kwargs ):
256
- """
257
- kwargs will be passed directly to switch_to_input
258
- pull (pull): pull configuration for the input
259
- """
260
258
self .iopin = digitalio .DigitalInOut (pin )
261
259
self .iopin .switch_to_input (** kwargs )
262
260
0 commit comments