Skip to content

Commit 0c606c5

Browse files
author
Marco van der Kolk
committed
Documentation: Sequences are supported, not just Lists
Signed-off-by: Marco van der Kolk <[email protected]>
1 parent f8edecf commit 0c606c5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

shared-bindings/keypad/ShiftRegisterKeys.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
//| self,
4242
//| *,
4343
//| clock: microcontroller.Pin,
44-
//| data: Union[microcontroller.Pin, List[microcontroller.Pin]],
44+
//| data: Union[microcontroller.Pin, Sequence[microcontroller.Pin]],
4545
//| latch: microcontroller.Pin,
4646
//| value_to_latch: bool = True,
47-
//| key_count: Union[int, List[int]],
47+
//| key_count: Union[int, Sequence[int]],
4848
//| value_when_pressed: bool,
4949
//| interval: float = 0.020,
5050
//| max_events: int = 64
@@ -63,15 +63,15 @@
6363
//|
6464
//| :param microcontroller.Pin clock: The shift register clock pin.
6565
//| The shift register should clock on a low-to-high transition.
66-
//| :param Union[microcontroller.Pin, List[microcontroller.Pin]] data: the incoming shift register data pin(s)
66+
//| :param Union[microcontroller.Pin, Sequence[microcontroller.Pin]] data: the incoming shift register data pin(s)
6767
//| :param microcontroller.Pin latch:
6868
//| Pin used to latch parallel data going into the shift register.
6969
//| :param bool value_to_latch: Pin state to latch data being read.
7070
//| ``True`` if the data is latched when ``latch`` goes high
7171
//| ``False`` if the data is latched when ``latch`` goes low.
7272
//| The default is ``True``, which is how the 74HC165 operates. The CD4021 latch is the opposite.
7373
//| Once the data is latched, it will be shifted out by toggling the clock pin.
74-
//| :param Union[int, List[int]] key_count: number of data lines to clock in (per data pin)
74+
//| :param Union[int, Sequence[int]] key_count: number of data lines to clock in (per data pin)
7575
//| :param bool value_when_pressed: ``True`` if the pin reads high when the key is pressed.
7676
//| ``False`` if the pin reads low (is grounded) when the key is pressed.
7777
//| :param float interval: Scan keys no more often than ``interval`` to allow for debouncing.
@@ -200,7 +200,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(keypad_shiftregisterkeys___exit___obj
200200
//| ...
201201

202202
//| key_count: int
203-
//| """The number of keys that are being scanned. (read-only)
203+
//| """The total number of keys that are being scanned. (read-only)
204204
//| """
205205

206206
//| events: EventQueue

0 commit comments

Comments
 (0)