We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af9f80d commit 84fa7c2Copy full SHA for 84fa7c2
1 file changed
shared-bindings/countio/Counter.c
@@ -14,14 +14,14 @@
14
//| """Count the number of rising- and/or falling-edge transitions on a given pin.
15
//| """
16
//|
17
-//| def __init__(self, pin: microcontroller.Pin, *, edge: Edge = Edge.FALL, pull: Optional[digitalio.Pull]) -> None:
+//| def __init__(self, pin: microcontroller.Pin, *, edge: Edge = Edge.FALL, pull: Optional[digitalio.Pull] = None) -> None:
18
//| """Create a Counter object associated with the given pin that counts
19
//| rising- and/or falling-edge transitions. At least one of ``rise`` and ``fall`` must be True.
20
//| The default is to count only falling edges, and is for historical backward compatibility.
21
22
//| :param ~microcontroller.Pin pin: pin to monitor
23
-//| :param Edge: which edge transitions to count
24
-//| :param digitalio.Pull: enable a pull-up or pull-down if not None
+//| :param Edge edge: which edge transitions to count
+//| :param Optional[digitalio.Pull] pull: enable a pull-up or pull-down if not None
25
26
27
//| For example::
0 commit comments