summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordherrada <dylan.herrada@adafruit.com>2020-07-03 10:19:34 -0400
committerdherrada <dylan.herrada@adafruit.com>2020-07-03 10:19:34 -0400
commitd73348f673538f74e896999d395b8fe8c0914a67 (patch)
tree451c75c0996d41b77982ef38dbe00d8269faa88e
parentff8604bb825dd003625c8e139d66fc90d93a8340 (diff)
Added type hints to gamepadshift
-rw-r--r--shared-bindings/gamepadshift/GamePadShift.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shared-bindings/gamepadshift/GamePadShift.c b/shared-bindings/gamepadshift/GamePadShift.c
index 782d9724d..f01c95704 100644
--- a/shared-bindings/gamepadshift/GamePadShift.c
+++ b/shared-bindings/gamepadshift/GamePadShift.c
@@ -36,7 +36,7 @@
//| class GamePadShift:
//| """Scan buttons for presses through a shift register"""
//|
-//| def __init__(self, clock: Any, data: Any, latch: Any):
+//| def __init__(self, clock: DigitalInOut, data: DigitalInOut, latch: DigitalInOut):
//| """Initializes button scanning routines.
//|
//| The ``clock``, ``data`` and ``latch`` parameters are ``DigitalInOut``
@@ -82,7 +82,7 @@ STATIC mp_obj_t gamepadshift_make_new(const mp_obj_type_t *type, size_t n_args,
return MP_OBJ_FROM_PTR(gamepad_singleton);
}
-//| def get_pressed(self) -> Any:
+//| def get_pressed(self) -> int:
//| """Get the status of buttons pressed since the last call and clear it.
//|
//| Returns an 8-bit number, with bits that correspond to buttons,
@@ -100,7 +100,7 @@ STATIC mp_obj_t gamepadshift_get_pressed(mp_obj_t self_in) {
}
MP_DEFINE_CONST_FUN_OBJ_1(gamepadshift_get_pressed_obj, gamepadshift_get_pressed);
-//| def deinit(self) -> Any:
+//| def deinit(self) -> None:
//| """Disable button scanning."""
//| ...
//|