Skip to content

Commit

Permalink
Update gen_mpy.py
Browse files Browse the repository at this point in the history
changes in LVGL APIs:
- removed unary_op, mp_generic_unary_op in mp_lv_type_fun_builtin_var and mp_lv_type_fun_builtin_static_var
- lv_obj_add_event to lv_obj_add_event_cb
  • Loading branch information
osugiw authored Oct 18, 2023
1 parent 6369315 commit 099feb3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gen/gen_mpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,6 @@ def register_int_ptr_type(convertor, *types):
MP_QSTR_function,
MP_TYPE_FLAG_BINDS_SELF | MP_TYPE_FLAG_BUILTIN_FUN,
call, lv_fun_builtin_var_call,
unary_op, mp_generic_unary_op,
buffer, mp_func_get_buffer
);
Expand All @@ -773,7 +772,6 @@ def register_int_ptr_type(convertor, *types):
MP_QSTR_function,
MP_TYPE_FLAG_BUILTIN_FUN,
call, lv_fun_builtin_var_call,
unary_op, mp_generic_unary_op,
buffer, mp_func_get_buffer
);
Expand Down Expand Up @@ -948,7 +946,7 @@ def register_int_ptr_type(convertor, *types):
lv_obj->user_data = self;
// Register a "Delete" event callback
lv_obj_add_event(lv_obj, mp_lv_delete_cb, LV_EVENT_DELETE, NULL);
lv_obj_add_event_cb(lv_obj, mp_lv_delete_cb, LV_EVENT_DELETE, NULL);
}
return MP_OBJ_FROM_PTR(self);
}
Expand Down Expand Up @@ -2957,5 +2955,3 @@ def generate_struct_functions(struct_list):

with open(args.metadata, 'w') as metadata_file:
json.dump(metadata, metadata_file, indent=4)


0 comments on commit 099feb3

Please sign in to comment.