Skip to content

Commit 704e6ea

Browse files
committed
libs/unit: Add TimerPWR Unit support.
Signed-off-by: lbuque <[email protected]>
1 parent 5df9f91 commit 704e6ea

File tree

8 files changed

+1412
-1
lines changed

8 files changed

+1412
-1
lines changed

docs/en/refs/unit.timerpwr.ref

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
2+
.. |TimerPWRUnit| image:: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/products/unit/Unit-TimerPWR/4.webp
3+
:target: https://docs.m5stack.com/en/unit/Unit-TimerPWR
4+
:height: 200px
5+
:width: 200px
6+
7+
.. |init.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/init.png
8+
.. |get_firmware_version.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/get_firmware_version.png
9+
.. |get_battery_voltage.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/get_battery_voltage.png
10+
.. |get_battery_current.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/get_battery_current.png
11+
.. |get_usb_voltage.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/get_usb_voltage.png
12+
.. |get_usb_current.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/get_usb_current.png
13+
.. |get_grove_voltage.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/get_grove_voltage.png
14+
.. |get_grove_current.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/get_grove_current.png
15+
.. |is_charging.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/is_charging.png
16+
.. |get_button_status.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/get_button_status.png
17+
.. |save_data_to_flash.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/save_data_to_flash.png
18+
.. |get_grove_output_status.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/get_grove_output_status.png
19+
.. |set_grove_output_status.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/set_grove_output_status.png
20+
.. |get_oled_backlight_status.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/get_oled_backlight_status.png
21+
.. |set_oled_backlight_status.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/set_oled_backlight_status.png
22+
.. |sleep_once.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/sleep_once.png
23+
.. |set_power_on_time.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/set_power_on_time.png
24+
.. |set_power_off_time.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/set_power_off_time.png
25+
.. |sleep_cycle.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/sleep_cycle.png
26+
.. |set_cycle_sleep.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/set_cycle_sleep.png
27+
.. |set_wakeup_trigger.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/set_wakeup_trigger.png
28+
.. |set_sleep_trigger.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/set_sleep_trigger.png
29+
.. .. |set_callback.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/set_callback.png
30+
.. |usb_callback.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/usb_callback.png
31+
.. |charging_callback.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/charging_callback.png
32+
.. |button_callback.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/button_callback.png
33+
.. |tick.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/tick.png
34+
35+
.. |example.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/timerpwr/example.png
36+
37+
.. |atoms3_timerpwr_example.m5f2| raw:: html
38+
39+
<a
40+
href="https://uiflow2.m5stack.com/?example=https://raw.githubusercontent.com/m5stack/uiflow-micropython/develop/examples/unit/timerpwr/atoms3_timerpwr_example.m5f2"
41+
target="_blank"
42+
>
43+
atoms3_timerpwr_example.m5f2
44+
</a>

docs/en/units/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Unit
7070
ssr.rst
7171
synth.rst
7272
thermal.rst
73+
timerpwr.rst
7374
tmos.rst
7475
tof.rst
7576
ultrasonic.rst

0 commit comments

Comments
 (0)