File tree 1 file changed +13
-6
lines changed
1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -228,11 +228,15 @@ 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
- def __init__ (self , pin ):
237
+ def __init__ (self , pin , ** kwargs ):
234
238
self .iopin = digitalio .DigitalInOut (pin )
235
- self .iopin .switch_to_output ()
239
+ self .iopin .switch_to_output (** kwargs )
236
240
237
241
@property
238
242
def value (self ):
@@ -245,11 +249,14 @@ def value(self, value):
245
249
246
250
class DigitalIn :
247
251
"""
248
- 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
249
256
"""
250
- def __init__ (self , pin ):
257
+ def __init__ (self , pin , ** kwargs ):
251
258
self .iopin = digitalio .DigitalInOut (pin )
252
- self .iopin .switch_to_input ()
259
+ self .iopin .switch_to_input (** kwargs )
253
260
254
261
@property
255
262
def value (self ):
You can’t perform that action at this time.
0 commit comments