@@ -116,8 +116,8 @@ extern const nativeio_digitalinout_drive_mode_obj_t nativeio_digitalinout_drive_
116116STATIC mp_obj_t nativeio_digitalinout_switch_to_output (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
117117 enum { ARG_value , ARG_drive_mode };
118118 static const mp_arg_t allowed_args [] = {
119- { MP_QSTR_value , MP_ARG_KW_ONLY | MP_ARG_BOOL , {.u_bool = false} },
120- { MP_QSTR_drive_mode , MP_ARG_KW_ONLY | MP_ARG_OBJ , {.u_rom_obj = & nativeio_digitalinout_drive_mode_push_pull_obj } },
119+ { MP_QSTR_value , MP_ARG_BOOL , {.u_bool = false} },
120+ { MP_QSTR_drive_mode , MP_ARG_OBJ , {.u_rom_obj = & nativeio_digitalinout_drive_mode_push_pull_obj } },
121121 };
122122 nativeio_digitalinout_obj_t * self = MP_OBJ_TO_PTR (pos_args [0 ]);
123123 mp_arg_val_t args [MP_ARRAY_SIZE (allowed_args )];
@@ -159,7 +159,7 @@ extern const nativeio_digitalinout_pull_obj_t nativeio_digitalinout_pull_down_ob
159159STATIC mp_obj_t nativeio_digitalinout_switch_to_input (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
160160 enum { ARG_pull };
161161 static const mp_arg_t allowed_args [] = {
162- { MP_QSTR_pull , MP_ARG_KW_ONLY | MP_ARG_OBJ , {.u_rom_obj = mp_const_none } },
162+ { MP_QSTR_pull , MP_ARG_OBJ , {.u_rom_obj = mp_const_none } },
163163 };
164164 nativeio_digitalinout_obj_t * self = MP_OBJ_TO_PTR (pos_args [0 ]);
165165 mp_arg_val_t args [MP_ARRAY_SIZE (allowed_args )];
@@ -279,7 +279,7 @@ const mp_obj_property_t nativeio_digitalinout_drive_mode_obj = {
279279//|
280280//| Get or set the pin pull.
281281//|
282- //| :raises AttributeError: if the direction is `out `.
282+ //| :raises AttributeError: if the direction is ~`Direction.OUT `.
283283//|
284284STATIC mp_obj_t nativeio_digitalinout_obj_get_pull (mp_obj_t self_in ) {
285285 nativeio_digitalinout_obj_t * self = MP_OBJ_TO_PTR (self_in );
0 commit comments