|
41 | 41 | //| self, |
42 | 42 | //| *, |
43 | 43 | //| clock: microcontroller.Pin, |
44 | | -//| data: Union[microcontroller.Pin, List[microcontroller.Pin]], |
| 44 | +//| data: Union[microcontroller.Pin, Sequence[microcontroller.Pin]], |
45 | 45 | //| latch: microcontroller.Pin, |
46 | 46 | //| value_to_latch: bool = True, |
47 | | -//| key_count: Union[int, List[int]], |
| 47 | +//| key_count: Union[int, Sequence[int]], |
48 | 48 | //| value_when_pressed: bool, |
49 | 49 | //| interval: float = 0.020, |
50 | 50 | //| max_events: int = 64 |
|
63 | 63 | //| |
64 | 64 | //| :param microcontroller.Pin clock: The shift register clock pin. |
65 | 65 | //| 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) |
67 | 67 | //| :param microcontroller.Pin latch: |
68 | 68 | //| Pin used to latch parallel data going into the shift register. |
69 | 69 | //| :param bool value_to_latch: Pin state to latch data being read. |
70 | 70 | //| ``True`` if the data is latched when ``latch`` goes high |
71 | 71 | //| ``False`` if the data is latched when ``latch`` goes low. |
72 | 72 | //| The default is ``True``, which is how the 74HC165 operates. The CD4021 latch is the opposite. |
73 | 73 | //| 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) |
75 | 75 | //| :param bool value_when_pressed: ``True`` if the pin reads high when the key is pressed. |
76 | 76 | //| ``False`` if the pin reads low (is grounded) when the key is pressed. |
77 | 77 | //| :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 |
200 | 200 | //| ... |
201 | 201 |
|
202 | 202 | //| 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) |
204 | 204 | //| """ |
205 | 205 |
|
206 | 206 | //| events: EventQueue |
|
0 commit comments