Skip to content

Commit 328d7b8

Browse files
Tinyu-Zhaolbuque
authored andcommitted
lib/units: Add RollerCAN examples.
Signed-off-by: Tinyu <[email protected]>
1 parent 043e50d commit 328d7b8

12 files changed

+495
-2349
lines changed

docs/en/refs/unit.rollercan.ref

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@
1515
.. |get_motor_status.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/get_motor_status.png
1616
.. |get_motor_error_code.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/get_motor_error_code.png
1717
.. |set_button_change_mode.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/set_button_change_mode.png
18-
.. |get_button_change_mode.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/get_button_change_mode.png
1918
.. |set_motor_jam_protect_state.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/set_motor_jam_protect_state.png
2019
.. |get_motor_jam_protect_state.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/get_motor_jam_protect_state.png
2120
.. |set_motor_id.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/set_motor_id.png
2221
.. |get_motor_id.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/get_motor_id.png
23-
.. |set_485_baudrate.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/set_485_baudrate.png
24-
.. |get_485_baudrate.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/get_485_baudrate.png
22+
.. |set_can_baudrate.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/set_can_baudrate.png
23+
.. |get_can_baudrate.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/get_can_baudrate.png
2524
.. |set_rgb_brightness.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/set_rgb_brightness.png
2625
.. |get_rgb_brightness.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/get_rgb_brightness.png
2726
.. |set_motor_speed.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/set_motor_speed.png
@@ -37,6 +36,7 @@
3736
.. |get_position_max_current.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/get_position_max_current.png
3837
.. |get_motor_position_readback.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/get_motor_position_readback.png
3938
.. |get_motor_position_pid.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/get_motor_position_pid.png
39+
.. |get_button_change_mode.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/get_button_change_mode.png
4040
.. |set_motor_position_pid.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/set_motor_position_pid.png
4141
.. |set_motor_max_current.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/set_motor_max_current.png
4242
.. |get_motor_max_current.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/get_motor_max_current.png
@@ -55,33 +55,33 @@
5555
.. |get_i2c_address.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/get_i2c_address.png
5656

5757
.. |i2c_example.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/i2c_example.png
58-
.. |rs485_example.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/rs485_example.png
59-
.. |rs485_i2c_example.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/rs485_i2c_example.png
58+
.. |can_example.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/can_example.png
59+
.. |can_i2c_example.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/rollercan/can_i2c_example.png
6060

61-
.. |roller485_i2c_fire_example.m5f2| raw:: html
61+
.. |rollercan_i2c_fire_example.m5f2| raw:: html
6262

6363
<a
64-
href="https://uiflow2.m5stack.com/?example=https://raw.githubusercontent.com/m5stack/uiflow-micropython/develop/examples/unit/roller485/roller485_i2c_fire_example.m5f2"
64+
href="https://uiflow2.m5stack.com/?example=https://raw.githubusercontent.com/m5stack/uiflow-micropython/develop/examples/unit/rollercan/rollercan_i2c_fire_example.m5f2"
6565
target="_blank"
6666
>
67-
roller485_i2c_fire_example.m5f2
67+
rollercan_i2c_fire_example.m5f2
6868
</a>
6969

70-
.. |roller485_485_fire_example.m5f2| raw:: html
70+
.. |rollercan_can_fire_example.m5f2| raw:: html
7171

7272
<a
73-
href="https://uiflow2.m5stack.com/?example=https://raw.githubusercontent.com/m5stack/uiflow-micropython/develop/examples/unit/roller485/roller485_485_fire_example.m5f2"
73+
href="https://uiflow2.m5stack.com/?example=https://raw.githubusercontent.com/m5stack/uiflow-micropython/develop/examples/unit/rollercan/rollercan_can_fire_example.m5f2"
7474
target="_blank"
7575
>
76-
roller485_485_fire_example.m5f2
76+
rollercan_can_fire_example.m5f2
7777
</a>
7878

7979

80-
.. |roller485_485toi2c_fire_example.m5f2| raw:: html
80+
.. |rollercan_cantoi2c_fire_example.m5f2| raw:: html
8181

8282
<a
83-
href="https://uiflow2.m5stack.com/?example=https://raw.githubusercontent.com/m5stack/uiflow-micropython/develop/examples/unit/roller485/roller485_485toi2c_fire_example.m5f2"
83+
href="https://uiflow2.m5stack.com/?example=https://raw.githubusercontent.com/m5stack/uiflow-micropython/develop/examples/unit/rollercan/rollercan_cantoi2c_fire_example.m5f2"
8484
target="_blank"
8585
>
86-
roller485_485toi2c_fire_example.m5f2
86+
rollercan_cantoi2c_fire_example.m5f2
8787
</a>

docs/en/units/roller485.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
Roller485
3-
==========
2+
Roller485Unit
3+
==============
44

55
.. include:: ../refs/unit.roller485.ref
66

0 commit comments

Comments
 (0)