Skip to content

Commit 19660ec

Browse files
committed
Doc and KW_REQ changes
1 parent 6916307 commit 19660ec

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

shared-bindings/is31fl3741/FrameBuffer.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
//| class IS31FL3741_FrameBuffer:
4141
//| """Creates an in-memory framebuffer for a IS31FL3741 device."""
4242
//|
43-
//| def __init__(self, is31: is31fl3741.IS31FL3741, width: int, height: int, mapping: Tuple[int, ...], *,
43+
//| def __init__(self, *, is31: is31fl3741.IS31FL3741, width: int, height: int, mapping: Tuple[int, ...],
4444
//| framebuffer: Optional[WriteableBuffer] = None, scale: bool = False, gamma: bool = False) -> None:
4545
//| """Create a IS31FL3741_FrameBuffer object with the given attributes.
4646
//|
@@ -64,13 +64,13 @@
6464
//| ...
6565
//|
6666
STATIC mp_obj_t is31fl3741_FrameBuffer_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) {
67-
enum { ARG_is31, ARG_width, ARG_height, ARG_framebuffer, ARG_mapping, ARG_scale, ARG_gamma };
67+
enum { ARG_is31, ARG_width, ARG_height, ARG_mapping, ARG_framebuffer, ARG_scale, ARG_gamma };
6868
static const mp_arg_t allowed_args[] = {
69-
{ MP_QSTR_is31, MP_ARG_OBJ | MP_ARG_REQUIRED | MP_ARG_KW_ONLY },
70-
{ MP_QSTR_width, MP_ARG_INT | MP_ARG_REQUIRED | MP_ARG_KW_ONLY },
71-
{ MP_QSTR_height, MP_ARG_INT | MP_ARG_REQUIRED | MP_ARG_KW_ONLY },
69+
{ MP_QSTR_is31, MP_ARG_OBJ | MP_ARG_REQUIRED },
70+
{ MP_QSTR_width, MP_ARG_INT | MP_ARG_REQUIRED },
71+
{ MP_QSTR_height, MP_ARG_INT | MP_ARG_REQUIRED },
72+
{ MP_QSTR_mapping, MP_ARG_OBJ | MP_ARG_REQUIRED },
7273
{ MP_QSTR_framebuffer, MP_ARG_OBJ | MP_ARG_KW_ONLY, { .u_obj = mp_const_none } },
73-
{ MP_QSTR_mapping, MP_ARG_OBJ | MP_ARG_KW_ONLY | MP_ARG_REQUIRED },
7474
{ MP_QSTR_scale, MP_ARG_BOOL | MP_ARG_KW_ONLY, { .u_bool = false } },
7575
{ MP_QSTR_gamma, MP_ARG_BOOL | MP_ARG_KW_ONLY, { .u_bool = false } },
7676
};

shared-bindings/is31fl3741/IS31FL3741.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ MP_DEFINE_CONST_FUN_OBJ_2(is31fl3741_IS31FL3741_set_global_current_obj, is31fl37
125125
//| :param int value: value to set the LED to 0x00 to 0xFF
126126
//| :param int page: page to write to 0 or 2. If the LED is a >= 180
127127
//| the routine will automatically write to page 1 or 3 (instead
128-
//| of 0 ot 2)"""
128+
//| of 0 or 2)"""
129129
//| ...
130130
//|
131131
STATIC mp_obj_t is31fl3741_IS31FL3741_set_led(size_t n_args, const mp_obj_t *args) {

0 commit comments

Comments
 (0)