Skip to content

Commit 7c0c0f2

Browse files
Tinyu-Zhaolbuque
authored andcommitted
docs: Update m5ui.arc documentation.
Signed-off-by: [email protected] <[email protected]>
1 parent 10d4cfe commit 7c0c0f2

File tree

4 files changed

+503
-50
lines changed

4 files changed

+503
-50
lines changed

docs/en/m5ui/arc.rst

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -228,38 +228,6 @@ M5Arc
228228
229229
arc_0.set_size(100, 50)
230230
231-
.. py:method:: set_width(width)
232-
233-
Set the width of the arc.
234-
235-
:param int width: The width of the arc.
236-
237-
UiFlow2 Code Block:
238-
239-
|set_width.png|
240-
241-
MicroPython Code Block:
242-
243-
.. code-block:: python
244-
245-
arc_0.set_width(100)
246-
247-
.. py:method:: set_height(height)
248-
249-
Set the height of the arc.
250-
251-
:param int height: The height of the arc.
252-
253-
UiFlow2 Code Block:
254-
255-
|set_height.png|
256-
257-
MicroPython Code Block:
258-
259-
.. code-block:: python
260-
261-
arc_0.set_height(50)
262-
263231
.. py:method:: align_to(obj, align, x, y)
264232
265233
Align the arc to another object.

docs/en/refs/m5ui.arc.ref

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
.. |align_to.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/switch/align_to.png
2-
.. |event.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/switch/event.png
3-
.. |set_arc_color.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/switch/set_arc_color.png
4-
.. |set_rotation.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/switch/set_rotation.png
5-
.. |set_value.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/switch/set_value.png
6-
.. |get_value.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/switch/get_value.png
7-
.. |set_range.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/switch/set_range.png
8-
.. |set_mode.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/switch/set_mode.png
9-
.. |set_height.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/switch/set_height.png
10-
.. |set_pos.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/switch/set_pos.png
11-
.. |set_size.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/switch/set_size.png
12-
.. |set_width.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/switch/set_width.png
13-
.. |set_x.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/switch/set_x.png
14-
.. |set_y.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/switch/set_y.png
15-
.. |set_flag.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/switch/set_flag.png
1+
.. |align_to.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/arc/align_to.png
2+
.. |event.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/arc/event.png
3+
.. |set_bg_color.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/arc/set_bg_color.png
4+
.. |set_indicator_color.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/arc/set_indicator_color.png
5+
.. |set_knob_color.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/arc/set_knob_color.png
6+
.. |set_rotation.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/arc/set_rotation.png
7+
.. |set_value.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/arc/set_value.png
8+
.. |get_value.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/arc/get_value.png
9+
.. |set_range.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/arc/set_range.png
10+
.. |set_mode.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/arc/set_mode.png
11+
.. |set_pos.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/arc/set_pos.png
12+
.. |set_size.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/arc/set_size.png
13+
.. |set_x.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/arc/set_x.png
14+
.. |set_y.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/arc/set_y.png
15+
.. |set_flag.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/arc/set_flag.png
1616

17-
.. |cores3_arc_event_example.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/switch/example.png
17+
.. |cores3_arc_event_example.png| image:: https://static-cdn.m5stack.com/mpy_docs/m5ui/arc/example.png
1818

1919
.. |cores3_arc_event_example.m5f2| raw:: html
2020

2121
<a
22-
href="https://uiflow2.m5stack.com/?example=https://raw.githubusercontent.com/m5stack/uiflow-micropython/develop/examples/m5ui/switch/cores3_arc_event_example.m5f2"
22+
href="https://uiflow2.m5stack.com/?example=https://raw.githubusercontent.com/m5stack/uiflow-micropython/develop/examples/m5ui/arc/cores3_arc_event_example.m5f2"
2323
target="_blank"
2424
>
2525
cores3_arc_event_example.m5f2

0 commit comments

Comments
 (0)