summaryrefslogtreecommitdiff
path: root/shared-bindings/digitalio
diff options
context:
space:
mode:
Diffstat (limited to 'shared-bindings/digitalio')
-rw-r--r--shared-bindings/digitalio/DigitalInOut.c6
-rw-r--r--shared-bindings/digitalio/Direction.c6
-rw-r--r--shared-bindings/digitalio/DriveMode.c6
-rw-r--r--shared-bindings/digitalio/Pull.c6
4 files changed, 12 insertions, 12 deletions
diff --git a/shared-bindings/digitalio/DigitalInOut.c b/shared-bindings/digitalio/DigitalInOut.c
index 0ef527f76..603f008e3 100644
--- a/shared-bindings/digitalio/DigitalInOut.c
+++ b/shared-bindings/digitalio/DigitalInOut.c
@@ -50,7 +50,7 @@
//| a pin, see the :py:class:`analogio.AnalogIn` and
//| :py:class:`analogio.AnalogOut` classes."""
//|
-//| def __init__(self, pin: microcontroller.Pin):
+//| def __init__(self, pin: microcontroller.Pin) -> None:
//| """Create a new DigitalInOut object associated with the pin. Defaults to input
//| with no pull. Use :py:meth:`switch_to_input` and
//| :py:meth:`switch_to_output` to change the direction.
@@ -82,13 +82,13 @@ STATIC mp_obj_t digitalio_digitalinout_obj_deinit(mp_obj_t self_in) {
}
MP_DEFINE_CONST_FUN_OBJ_1(digitalio_digitalinout_deinit_obj, digitalio_digitalinout_obj_deinit);
-//| def __enter__(self, ) -> DigitalInOut:
+//| def __enter__(self) -> DigitalInOut:
//| """No-op used by Context Managers."""
//| ...
//|
// Provided by context manager helper.
-//| def __exit__(self, ) -> None:
+//| def __exit__(self) -> None:
//| """Automatically deinitializes the hardware when exiting a context. See
//| :ref:`lifetime-and-contextmanagers` for more info."""
//| ...
diff --git a/shared-bindings/digitalio/Direction.c b/shared-bindings/digitalio/Direction.c
index dbd0e93e4..173ebfb2b 100644
--- a/shared-bindings/digitalio/Direction.c
+++ b/shared-bindings/digitalio/Direction.c
@@ -41,15 +41,15 @@
//| class Direction:
//| """Defines the direction of a digital pin"""
//|
-//| def __init__(self, ):
+//| def __init__(self) -> None:
//| """Enum-like class to define which direction the digital values are
//| going."""
//| ...
//|
-//| INPUT: Any = ...
+//| INPUT: Direction = ...
//| """Read digital data in"""
//|
-//| OUTPUT: Any = ...
+//| OUTPUT: Direction = ...
//| """Write digital data out"""
//|
const mp_obj_type_t digitalio_direction_type;
diff --git a/shared-bindings/digitalio/DriveMode.c b/shared-bindings/digitalio/DriveMode.c
index 31b682d38..2f22029b0 100644
--- a/shared-bindings/digitalio/DriveMode.c
+++ b/shared-bindings/digitalio/DriveMode.c
@@ -29,15 +29,15 @@
//| class DriveMode:
//| """Defines the drive mode of a digital pin"""
//|
-//| def __init__(self, ):
+//| def __init__(self) -> None:
//| """Enum-like class to define the drive mode used when outputting
//| digital values."""
//| ...
//|
-//| PUSH_PULL: Any = ...
+//| PUSH_PULL: DriveMode = ...
//| """Output both high and low digital values"""
//|
-//| OPEN_DRAIN: Any = ...
+//| OPEN_DRAIN: DriveMode = ...
//| """Output low digital values but go into high z for digital high. This is
//| useful for i2c and other protocols that share a digital line."""
//|
diff --git a/shared-bindings/digitalio/Pull.c b/shared-bindings/digitalio/Pull.c
index 9aeec1f33..87e2a8f1e 100644
--- a/shared-bindings/digitalio/Pull.c
+++ b/shared-bindings/digitalio/Pull.c
@@ -29,16 +29,16 @@
//| class Pull:
//| """Defines the pull of a digital input pin"""
//|
-//| def __init__(self, ):
+//| def __init__(self) -> None:
//| """Enum-like class to define the pull value, if any, used while reading
//| digital values in."""
//| ...
//|
-//| UP: Any = ...
+//| UP: Pull = ...
//| """When the input line isn't being driven the pull up can pull the state
//| of the line high so it reads as true."""
//|
-//| DOWN: Any = ...
+//| DOWN: Pull = ...
//| """When the input line isn't being driven the pull down can pull the
//| state of the line low so it reads as false."""
//|