diff --git a/docs/Application_guide/en/helios-sdk/advanced.md b/docs/Application_guide/en/helios-sdk/advanced.md index 2f17e711fa91a64c878bd5acfbe6f914adc0fe57..0322f430faf266d00d2beae780ae2454ce5a7739 100644 --- a/docs/Application_guide/en/helios-sdk/advanced.md +++ b/docs/Application_guide/en/helios-sdk/advanced.md @@ -394,7 +394,7 @@ The difference comparison in the figure below shows the difference between this - Use the macro `MP_DEFINE_CONST_FUN_OBJ_0` to add a function object `modtest_obj_func_noargs`, which is the code on Line 18. - Register the newly added `modtest_obj_func_noargs` object to modtest, which is the code on Line 23. -![](../media/helios-sdk/advanced/image_1f5fj61re1q2q1r4jns4ouek6bm.png) +![](../media/helios-sdk/advanced/image_1f5fj61re1q2q1r4jns4ouek6bb.png) **Step 2: Verify the Functionality** @@ -487,9 +487,9 @@ The difference comparison in the figure below shows the difference between this - Added the C language function *modtest_func_withargs* corresponding to the Python module `modtest` method *modtest.func_withargs(str)*. In this example, the string parameters that the user input from the Python layer is returned through *mp_obj_str_get_str(str)*. - Use the macro `MP_DEFINE_CONST_FUN_OBJ_1` to add a function object `modtest_obj_func_withargs`, which is the code on Line 38. -- Register the newly added `modtest_obj_func_noargs` object to modtest, which is the code on Line 44. +- Register the newly added `modtest_obj_func_noargs` object to modtest, which is the code on Line 43. -![](../media/helios-sdk/advanced/image_1f5fmta2oakmps0115mb8r1q0s20.png) +![](../media/helios-sdk/advanced/image_1f5fmta2oakmps0115mb8r1q0s23.png) **Step 2: Verify the Functionality** @@ -692,7 +692,7 @@ const mp_obj_type_t modtest_math_type = { The difference comparison in the figure below shows the difference between this code and the code before the modification (the current code is on the right, and the red part is the difference): -![](../media/helios-sdk/advanced/image_1f5ft863lnr51cqccqjdrcpk73k.png) +![](../media/helios-sdk/advanced/image_1f5ft863lnr51cqccqjdrcpk73d.png) As can be seen from the figure, adding a function without parameters to the type is the same as adding it to the module, so no further explanation is needed. @@ -787,7 +787,7 @@ STATIC const mp_rom_map_elem_t math_locals_dict_table[] = { After completing the above three steps, let's see the differences between the code in this section and the code before the modification. The red font in the following figure is all the code we added. -![](../media/helios-sdk/advanced/image_1f5hsgiefmj0abp6ris3h464r.png) +![](../media/helios-sdk/advanced/image_1f5hsgiefmj0abp6ris3h464c.png) **Step 4: Verify the Functionality** diff --git a/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5fj61re1q2q1r4jns4ouek6bb.png b/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5fj61re1q2q1r4jns4ouek6bb.png new file mode 100644 index 0000000000000000000000000000000000000000..e83ae0f61bdd68f9e6ee599112141a37e1ec8df8 Binary files /dev/null and b/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5fj61re1q2q1r4jns4ouek6bb.png differ diff --git a/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5fj61re1q2q1r4jns4ouek6bm.png b/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5fj61re1q2q1r4jns4ouek6bm.png deleted file mode 100644 index 5e85763ff7cfe921089b663a2e0b9e6a2c2163c0..0000000000000000000000000000000000000000 Binary files a/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5fj61re1q2q1r4jns4ouek6bm.png and /dev/null differ diff --git a/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5fmta2oakmps0115mb8r1q0s20.png b/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5fmta2oakmps0115mb8r1q0s20.png deleted file mode 100644 index b8a147bca3384c3b15247d6a5123855594453ee8..0000000000000000000000000000000000000000 Binary files a/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5fmta2oakmps0115mb8r1q0s20.png and /dev/null differ diff --git a/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5fmta2oakmps0115mb8r1q0s23.png b/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5fmta2oakmps0115mb8r1q0s23.png new file mode 100644 index 0000000000000000000000000000000000000000..147579bb74e74afcacd0011523ef8c7f6a27c80f Binary files /dev/null and b/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5fmta2oakmps0115mb8r1q0s23.png differ diff --git a/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5ft863lnr51cqccqjdrcpk73d.png b/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5ft863lnr51cqccqjdrcpk73d.png new file mode 100644 index 0000000000000000000000000000000000000000..054fc8d12ebf41cff5b51f3960e0571a8b6be12d Binary files /dev/null and b/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5ft863lnr51cqccqjdrcpk73d.png differ diff --git a/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5ft863lnr51cqccqjdrcpk73k.png b/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5ft863lnr51cqccqjdrcpk73k.png deleted file mode 100644 index 8cea35cbdb8fe98fec1e12be7f7b763c39a42bc6..0000000000000000000000000000000000000000 Binary files a/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5ft863lnr51cqccqjdrcpk73k.png and /dev/null differ diff --git a/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5hsgiefmj0abp6ris3h464c.png b/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5hsgiefmj0abp6ris3h464c.png new file mode 100644 index 0000000000000000000000000000000000000000..73946602996f305e9eea391b21aef6a0443f1b80 Binary files /dev/null and b/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5hsgiefmj0abp6ris3h464c.png differ diff --git a/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5hsgiefmj0abp6ris3h464r.png b/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5hsgiefmj0abp6ris3h464r.png deleted file mode 100644 index ae7b0b36ab3b0bdc48eff47d515f62ae496a15d0..0000000000000000000000000000000000000000 Binary files a/docs/Application_guide/en/media/helios-sdk/advanced/image_1f5hsgiefmj0abp6ris3h464r.png and /dev/null differ