Skip to content

Commit 1bbd55a

Browse files
Tinyu-Zhaolbuque
authored andcommitted
lib/unit: Add Unit INA226 support and docs.
Signed-off-by: [email protected] <[email protected]>
1 parent 0c5baeb commit 1bbd55a

File tree

10 files changed

+610
-29
lines changed

10 files changed

+610
-29
lines changed

docs/en/refs/unit.ina226.ref

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.. |INA226| image:: https://static-cdn.m5stack.com/resource/docs/products/unit/Unit%20INA226/4.webp
2+
:target: https://docs.m5stack.com/en/unit/Unit%20INA226
3+
:height: 200px
4+
:width: 200px
5+
6+
.. |init.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/ina226/init.png
7+
8+
.. |read_shunt_voltage.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/ina226/read_shunt_voltage.png
9+
.. |read_bus_voltage.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/ina226/read_bus_voltage.png
10+
.. |read_current.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/ina226/read_current.png
11+
.. |read_power.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/ina226/read_power.png
12+
13+
.. |example.png| image:: https://static-cdn.m5stack.com/mpy_docs/unit/ina226/example.png
14+
15+
.. |ina226_core2_example.m5f2| raw:: html
16+
17+
<a
18+
href="https://uiflow2.m5stack.com/?example=https://raw.githubusercontent.com/m5stack/uiflow-micropython/develop/examples/unit/ina226/ina226_core2_example.m5f2"
19+
target="_blank"
20+
>
21+
ina226_core2_example.m5f2
22+
</a>

docs/en/units/ina226.rst

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
INA226 Unit
2+
============
3+
4+
.. sku: U200 / U200-1A
5+
6+
.. include:: ../refs/unit.ina226.ref
7+
8+
This is the driver library of INA226 Unit, which is used to obtain current and power data from the INA226 sensor.
9+
10+
Support the following products:
11+
12+
|INA226|
13+
14+
15+
UiFlow2 Example
16+
---------------
17+
18+
get value
19+
^^^^^^^^^^^^^^^
20+
21+
Open the |ina226_core2_example.m5f2| project in UiFlow2.
22+
23+
This example gets the current, voltage, and power values from the INA226 Unit and displays them on the screen.
24+
25+
UiFlow2 Code Block:
26+
27+
|example.png|
28+
29+
Example output:
30+
31+
None
32+
33+
MicroPython Example
34+
-------------------
35+
36+
get value
37+
^^^^^^^^^^^^^^^
38+
39+
This example gets the current, voltage, and power values from the INA226 Unit and displays them on the screen.
40+
41+
MicroPython Code Block:
42+
43+
.. literalinclude:: ../../../examples/unit/ina226/ina226_core2_example.py
44+
:language: python
45+
:linenos:
46+
47+
Example output:
48+
49+
None
50+
51+
52+
**API**
53+
-------
54+
55+
INA226Unit
56+
^^^^^^^^^^
57+
58+
.. autoclass:: unit.ina226.INA226Unit
59+
:members:
60+
61+
INA226
62+
^^^^^^^
63+
64+
.. autoclass:: driver.ina226.INA226
65+
:members:

docs/en/units/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Unit
5656
id.rst
5757
imu.rst
5858
imupro.rst
59+
ina226.rst
5960
ir.rst
6061
joystick.rst
6162
joystick2.rst
Lines changed: 256 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,256 @@
1+
# SOME DESCRIPTIVE TITLE.
2+
# Copyright (C) 2016 - 2025 M5Stack Technology Co., Ltd
3+
# This file is distributed under the same license as the UIFlow2 Programming
4+
# Guide package.
5+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2025.
6+
#
7+
#, fuzzy
8+
msgid ""
9+
msgstr ""
10+
"Project-Id-Version: UIFlow2 Programming Guide \n"
11+
"Report-Msgid-Bugs-To: \n"
12+
"POT-Creation-Date: 2025-08-11 14:46+0800\n"
13+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15+
"Language: zh_CN\n"
16+
"Language-Team: zh_CN <[email protected]>\n"
17+
"Plural-Forms: nplurals=1; plural=0;\n"
18+
"MIME-Version: 1.0\n"
19+
"Content-Type: text/plain; charset=utf-8\n"
20+
"Content-Transfer-Encoding: 8bit\n"
21+
"Generated-By: Babel 2.16.0\n"
22+
23+
#: ../../en/units/ina226.rst:2 309e555f5e0e43c6ad018adbd741a106
24+
msgid "INA226 Unit"
25+
msgstr ""
26+
27+
#: ../../en/units/ina226.rst:8 441f48534fdd48c687a5d4b0ff520351
28+
msgid ""
29+
"This is the driver library of INA226 Unit, which is used "
30+
"to obtain current and power data from the INA226 sensor."
31+
msgstr "这是 INA226 单元的驱动库,用于从 INA226 传感器获取电流与功率数据。"
32+
33+
#: ../../en/units/ina226.rst:10 28f98c0c1bdd4980913345e62ed35161
34+
msgid "Support the following products:"
35+
msgstr "支持以下产品:"
36+
37+
#: ../../en/units/ina226.rst:12 a278cadedef14b689a7fcc99c3df0d02
38+
msgid "|INA226|"
39+
msgstr ""
40+
41+
#: ../../en/refs/unit.ina226.ref ../../en/units/ina226.rst:62
42+
#: 3f55be23a385402f9418cce6c31f1a20 40e273b9843a4f8ba323907a21841fb4
43+
msgid "INA226"
44+
msgstr ""
45+
46+
#: ../../en/units/ina226.rst:16 fefd38959ab94d7285b5b7aabd613662
47+
msgid "UiFlow2 Example"
48+
msgstr "UiFlow2 示例"
49+
50+
#: ../../en/units/ina226.rst:19 ../../en/units/ina226.rst:37
51+
#: 2f3f99063e5a47af8e8d6e975a2a79ff 9e69a492f01f48d696607cf0e2ef2ee2
52+
msgid "get value"
53+
msgstr "获取数值"
54+
55+
#: ../../en/units/ina226.rst:21 db3cfe3c82e248eb976a259af7ea6685
56+
msgid "Open the |ina226_core2_example.m5f2| project in UiFlow2."
57+
msgstr "在 UiFlow2 中打开 |ina226_core2_example.m5f2| 项目。"
58+
59+
#: ../../en/units/ina226.rst:23 ../../en/units/ina226.rst:39
60+
#: 07c953e04ff44549b39195f121b64e90 a2df234e337245bb8468698418af7276
61+
msgid ""
62+
"This example gets the current, voltage, and power values from the INA226 "
63+
"Unit and displays them on the screen."
64+
msgstr "该示例从 INA226 单元读取电流、电压和功率值并显示在屏幕上。"
65+
66+
#: ../../en/units/ina226.rst:25 1dbbce64cab64cb4af4c519e82e4cf87
67+
#: 2eaccd5ab2fe45a09dfb1428517f0250 5c34fd58e62747c584383850378b9be4
68+
#: 88266ce0f2134fc092f3805214e64e4b b9088dcede4244a7b8a17a25b1ee46fb
69+
#: ba60a36b1f7c4d35a6fb36a31960cdb6 driver.ina226.INA226:7
70+
#: driver.ina226.INA226.read_bus_voltage:6 driver.ina226.INA226.read_current:6
71+
#: driver.ina226.INA226.read_power:6 driver.ina226.INA226.read_shunt_voltage:6
72+
#: fc485d6f0dbb487ab85eef26901a8d35 of unit.ina226.INA226Unit:7
73+
msgid "UiFlow2 Code Block:"
74+
msgstr "UiFlow2 代码块:"
75+
76+
#: ../../en/units/ina226.rst:27
77+
msgid "|example.png|"
78+
msgstr ""
79+
80+
#: ../../en/refs/unit.ina226.ref:13 58703b60996c4f6e803134e038cb3e4a
81+
msgid "example.png"
82+
msgstr ""
83+
84+
#: ../../en/units/ina226.rst:29 ../../en/units/ina226.rst:47
85+
msgid "Example output:"
86+
msgstr "示例输出:"
87+
88+
#: ../../en/units/ina226.rst:31 ../../en/units/ina226.rst:49
89+
#: 5d411285103746879e67eac6ea748260 eedb4da36c4c4d3f81449a79460b8fb5
90+
msgid "None"
91+
msgstr ""
92+
93+
#: ../../en/units/ina226.rst:34 385e4c482ee748bba376c0e020eecb76
94+
msgid "MicroPython Example"
95+
msgstr "MicroPython 示例"
96+
97+
#: ../../en/units/ina226.rst:41 3c2cd89eceb146bda9ddfd713f893aae
98+
#: 4174176606434c7784e799a57499c01b 4e3b93ec92ee405ca919a56fb61222eb
99+
#: 625c6fad5a954b6aba4b8f059021baf9 9a88d3b331cd4157bac1d351865d42c7
100+
#: c6486c07c92b45a4bd64544fac0e092e driver.ina226.INA226:11
101+
#: driver.ina226.INA226.calibrate:6 driver.ina226.INA226.read_bus_voltage:10
102+
#: driver.ina226.INA226.read_current:10 driver.ina226.INA226.read_power:10
103+
#: driver.ina226.INA226.read_shunt_voltage:10 f825a485f5a844d4b26fc1d6a8d1ddf8
104+
#: f9f2da003eec4d8da2cf0cd0af53b79d of unit.ina226.INA226Unit:11
105+
msgid "MicroPython Code Block:"
106+
msgstr "MicroPython 代码块:"
107+
108+
#: ../../en/units/ina226.rst:53 712e6414b4a94c858e480ec132e69961
109+
msgid "**API**"
110+
msgstr ""
111+
112+
#: ../../en/units/ina226.rst:56 d86f5601afbb49e2b8cc47aadf26b4ed
113+
msgid "INA226Unit"
114+
msgstr ""
115+
116+
#: 28c3ee6a71044f4ba9a1454dbeed58b3 of unit.ina226.INA226Unit:1
117+
msgid "Bases: :py:class:`~driver.ina226.INA226`"
118+
msgstr ""
119+
120+
#: db3c95f1bb564e1089fed63dfdd169da of unit.ina226.INA226Unit:1
121+
msgid "Create an INA226Unit object."
122+
msgstr "创建 INA226Unit 对象。"
123+
124+
#: ../../en/units/ina226.rst 408124a742a34effb69f50c1bbf21e63
125+
#: c915ff596cdf4ae78741a3e3607d71f7 cb6f9a076caa4fde9f91005681914a00
126+
#: driver.ina226.INA226.calibrate of unit.ina226.INA226Unit
127+
msgid "Parameters"
128+
msgstr "参数"
129+
130+
#: 52fbd03c38114fa9999e87aa9e8f3126 of unit.ina226.INA226Unit:3
131+
msgid "The I2C bus the Accel Unit is connected to."
132+
msgstr "INA226 单元连接的 I2C 总线。"
133+
134+
#: ba2d0a5f2cf04fc39832ce111969704d of unit.ina226.INA226Unit:4
135+
msgid "The I2C address of the device. Default is 0x41."
136+
msgstr "设备的 I2C 地址,默认 0x41。"
137+
138+
#: e7e21cab9a034839931760eec5577b4a of unit.ina226.INA226Unit:5
139+
msgid "The type of INA226. Default is \"10A\". Options are \"1A\" and \"10A\"."
140+
msgstr "INA226 的规格类型,默认 \"10A\",可选 \"1A\"\"10A\"。"
141+
142+
#: driver.ina226.INA226:1 e7dbb5585a094365a6ee5d587740a304 of
143+
msgid "Bases: :py:class:`object`"
144+
msgstr ""
145+
146+
#: driver.ina226.INA226:1 e94afddef1714697a24c8ed006cf742e of
147+
msgid "Create an INA226 object."
148+
msgstr "创建 INA226 对象。"
149+
150+
#: d46a8cd285ee46a498f5b8145daf5e54 driver.ina226.INA226:3 of
151+
msgid "The I2C bus the INA226 is connected to."
152+
msgstr "INA226 所连接的 I2C 总线。"
153+
154+
#: 5da9b3dcd783404c9d574c60e79f93cf driver.ina226.INA226:4 of
155+
msgid "The I2C address of the device."
156+
msgstr "设备的 I2C 地址。"
157+
158+
#: driver.ina226.INA226:5 f404624bcb004bc49033d097c29cbc9e of
159+
msgid "The value of the shunt resistor in ohms. Default is 0.2."
160+
msgstr "分流电阻值(欧姆),默认 0.2。"
161+
162+
#: 7efd1dbb024444a48ad2b3184f496da3 driver.ina226.INA226.calibrate:1 of
163+
msgid "Calibrate the INA226."
164+
msgstr "对 INA226 进行校准。"
165+
166+
#: 8bb9550806dc4350897a0138e35333a1 driver.ina226.INA226.calibrate:3 of
167+
msgid "The maximum expected current in Amperes."
168+
msgstr "预期的最大电流(安培)。"
169+
170+
#: 17eb1274907044b4b323feead89cc16d driver.ina226.INA226.calibrate:4 of
171+
msgid ""
172+
"The calibration value to use. If None, it will be calculated based on the"
173+
" maximum expected current and the shunt resistor value."
174+
msgstr "要使用的校准值;若为 None,则根据最大预期电流和分流电阻自动计算。"
175+
176+
#: c7fbee1fb0354a48ba2134a0baa71817 driver.ina226.INA226.read_shunt_voltage:1
177+
#: of
178+
msgid "Read the shunt voltage in Volts."
179+
msgstr "读取分流电压(伏特)。"
180+
181+
#: 862d74165b264fe3a68695703ef82471 d5d2ddc22f784ce0bd4471e6acf78d76
182+
#: driver.ina226.INA226.read_bus_voltage driver.ina226.INA226.read_current
183+
#: driver.ina226.INA226.read_power driver.ina226.INA226.read_shunt_voltage
184+
#: f24bb361c58b471bacca2a4777f87acb f5e8834d181447adb07652d501311875 of
185+
msgid "Returns"
186+
msgstr "返回值"
187+
188+
#: b8bbed26ecc64f2f976497663844a08e driver.ina226.INA226.read_shunt_voltage:3
189+
#: of
190+
msgid "The shunt voltage in Volts."
191+
msgstr "分流电压(伏特)。"
192+
193+
#: 32a8767c184545e9babda2662e830bce a159e961d1c94cfe9654e050adfe44b1
194+
#: aacbdda54aed456d8cd7b23810877853 c3c5bdb659224661af68d59a2f5b674d
195+
#: driver.ina226.INA226.read_bus_voltage driver.ina226.INA226.read_current
196+
#: driver.ina226.INA226.read_power driver.ina226.INA226.read_shunt_voltage of
197+
msgid "Return type"
198+
msgstr ""
199+
200+
#: db6a415a030a433fa007bddccda58f34 driver.ina226.INA226.read_shunt_voltage:8
201+
#: of
202+
msgid "|read_shunt_voltage.png|"
203+
msgstr ""
204+
205+
#: ../../en/refs/unit.ina226.ref:8 527fc0188a79408a8f81350ec555cc67
206+
msgid "read_shunt_voltage.png"
207+
msgstr ""
208+
209+
#: ac5031c03e2a4d45be00cc6aff930d2e driver.ina226.INA226.read_bus_voltage:1
210+
msgid "Read the bus voltage in Volts."
211+
msgstr "读取总线电压(伏特)。"
212+
213+
#: 61d04711378745e2b0407949f5667b5b driver.ina226.INA226.read_bus_voltage:3 of
214+
msgid "The bus voltage in Volts."
215+
msgstr "总线电压(伏特)。"
216+
217+
#: 68e90b711ff9425abf6ddbfaf30b5e50 driver.ina226.INA226.read_bus_voltage:8 of
218+
msgid "|read_bus_voltage.png|"
219+
msgstr ""
220+
221+
#: ../../en/refs/unit.ina226.ref:9 049210999b604381b6b921701dc4c400
222+
msgid "read_bus_voltage.png"
223+
msgstr ""
224+
225+
#: driver.ina226.INA226.read_current:1
226+
msgid "Read the current in Amperes."
227+
msgstr "读取电流(安培)。"
228+
229+
#: 3d1d513659c946bb9f815a1702646594 driver.ina226.INA226.read_current:3 of
230+
msgid "The current in Amperes."
231+
msgstr "电流(安培)。"
232+
233+
#: 55298385f12845d99a3d574e992dbf12 driver.ina226.INA226.read_current:8 of
234+
msgid "|read_current.png|"
235+
msgstr ""
236+
237+
#: ../../en/refs/unit.ina226.ref:10 80d1529cf24d4360a99aad53db7b8e54
238+
msgid "read_current.png"
239+
msgstr ""
240+
241+
#: d7f07cb4b2344a989bc37974e238e066 driver.ina226.INA226.read_power:1 of
242+
msgid "Read the power in Watts."
243+
msgstr "读取功率(瓦)。"
244+
245+
#: 3eed67a019574fe98787d98131d8261b driver.ina226.INA226.read_power:3 of
246+
msgid "The power in Watts."
247+
msgstr "功率(瓦)。"
248+
249+
#: 2313238bcafa424c9354e35e858ba5e8 driver.ina226.INA226.read_power:8 of
250+
msgid "|read_power.png|"
251+
msgstr ""
252+
253+
#: ../../en/refs/unit.ina226.ref:11 d030faceb19f4ea6a18d1e2c097d0793
254+
msgid "read_power.png"
255+
msgstr ""
256+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"version":"V2.0","versionNumber":"V2.3.3","type":"core2","components":[{"name":"page0","type":"lvgl_page","layer":0,"screenId":"builtin","screenName":"","id":"o%kIIonEVlENSZAX","createTime":1754883745053,"backgroundColor":"#ffffff","isLVGL":true,"isSelected":true},{"name":"label0","type":"lvgl_label","layer":1,"screenId":"builtin","screenName":"","id":"cia6h3x$05EUDCR!","createTime":1754884715619,"x":0,"y":56,"color":"#000000","backgroundColor":"#ffffff","bg_opacity":0,"text":"Bus Voltage:","font":"lv.font_montserrat_16","pageId":"o%kIIonEVlENSZAX","isLVGL":true,"isSelected":false},{"name":"label1","type":"lvgl_label","layer":2,"screenId":"builtin","screenName":"","id":"kodpuidT#Dg#uQ0M","createTime":1754884769505,"x":0,"y":88,"color":"#000000","backgroundColor":"#ffffff","bg_opacity":0,"text":"Current:","font":"lv.font_montserrat_16","pageId":"o%kIIonEVlENSZAX","isLVGL":true,"isSelected":false},{"name":"label2","type":"lvgl_label","layer":3,"screenId":"builtin","screenName":"","id":"r7QMfaT0dc=0yZyM","createTime":1754884773480,"x":0,"y":124,"color":"#000000","backgroundColor":"#ffffff","bg_opacity":0,"text":"Power:","font":"lv.font_montserrat_16","pageId":"o%kIIonEVlENSZAX","isLVGL":true,"isSelected":false},{"name":"label3","type":"lvgl_label","layer":4,"screenId":"builtin","screenName":"","id":"xxl6O!O%jC^E2Mrp","createTime":1754884776705,"x":0,"y":161,"color":"#000000","backgroundColor":"#ffffff","bg_opacity":0,"text":"Shunt Voltage:","font":"lv.font_montserrat_16","pageId":"o%kIIonEVlENSZAX","isLVGL":true,"isSelected":false}],"resources":[{"hardware":["hardware_button","hardware_pin_button","imu","speaker","touch","mic","sdcard","i2c"]},{"unit":["unit_ina226"]}],"units":[{"type":"unit_ina226","name":"ina226_0","portList":["A","PAHUB","Custom"],"portType":"A","userPort":[22,21],"id":"nb1aBRydE3fX%Z#9","createTime":1754893250320,"bus":"i2c0","pahubPortList":[0,1,2,3,4,5],"pahubPort":0,"initBlockId":",MSovA[wdch,fv:V{%_r"}],"hats":[],"bases":[],"i2cs":[{"id":"i2c0","portType":"A","userPort":[22,21],"freq":"100000","blockId":"1j(`V,v}|q|iukQaL!n^"}],"blockly":"<block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"50\" y=\"50\"><mutation isBegin=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_begin\" id=\"1m(|GI@5#}k@a+9W=Dl^\"><next><block type=\"i2c_init\" id=\"1j(`V,v}|q|iukQaL!n^\"><field name=\"NAME\">0</field><field name=\"FREQ\">100000</field><value name=\"SCL\"><shadow type=\"math_number\" id=\"3rzAH)9`q103ih^[s@98\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">33</field></shadow></value><value name=\"SDA\"><shadow type=\"math_number\" id=\"{GwtH%jNz!.)9IFW`lBO\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">32</field></shadow></value><next><block type=\"unit_ina226_init\" id=\",MSovA[wdch,fv:V{%_r\"><field name=\"NAME\">ina226_0</field><field name=\"TYPE\">10A</field><value name=\"ADDR\"><shadow type=\"math_number\" id=\"5SjZVpcLK_2z}Iv^Dh!h\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0x41</field></shadow></value><next><block type=\"lvgl_page_screen_load\" id=\"y$[H`M)/ZsB#G]-98MxS\"><field name=\"NAME\">page0</field></block></next></block></next></block></next></block></statement></block><block type=\"basic_on_loop\" id=\"loop_block\" deletable=\"false\" x=\"50\" y=\"270\"><mutation isUpdate=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_update\" id=\"{coeL|pbJN$d$sRV+Y;S\"><next><block type=\"time_sleep_millisecond\" id=\"0K+2@{H0mmDCkqp-k)+5\"><value name=\"MS\"><shadow type=\"math_number\" id=\"XShXK8+p;RdAsZ,1v,7a\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">500</field></shadow></value><next><block type=\"lvgl_label_set_text\" id=\"yexoC`DuF[Di6cr$0.a`\"><field name=\"NAME\">label0</field><value name=\"VALUE\"><shadow type=\"text\" id=\"`RyLt}xm#adxMosk${VF\"><field name=\"TEXT\">hello M5</field></shadow><block type=\"text_add_str\" id=\"8YAYBYa$sa+*D{|^`y(m\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"gwzzlao]M5tS2A-BNM~8\"><field name=\"TEXT\">Bus Voltage:</field></shadow></value><value name=\"VALUE2\"><block type=\"text_add_str\" id=\"$Ti(Fpn26r7Pu=lzH+Jh\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"*]O=3H}ZG^@{cqu1)9):\" disabled=\"true\"><field name=\"TEXT\">Bus Voltage:</field></shadow><block type=\"unit_ina226_read_bus_voltage\" id=\"2Nrc^t)aPZzN#apfRR,Z\"><field name=\"NAME\">ina226_0</field></block></value><value name=\"VALUE2\"><block type=\"text\" id=\"bdheenRE[J!YSqlk$/wn\"><field name=\"TEXT\">V</field></block></value></block></value></block></value><next><block type=\"lvgl_label_set_text\" id=\"%.%ho(`.s5r?R]wNkf8(\"><field name=\"NAME\">label1</field><value name=\"VALUE\"><shadow type=\"text\" id=\"`RyLt}xm#adxMosk${VF\"><field name=\"TEXT\">hello M5</field></shadow><block type=\"text_add_str\" id=\"`l+_3r*uU$8oCHT`|w^%\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"hFf/x|7CEPs^A8D9.T^]\"><field name=\"TEXT\">Current:</field></shadow></value><value name=\"VALUE2\"><block type=\"text_add_str\" id=\"_vXqM,8oM4eU)b%lM?qF\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"*]O=3H}ZG^@{cqu1)9):\"><field name=\"TEXT\">Bus Voltage:</field></shadow><block type=\"unit_ina226_read_current\" id=\"O*RhEgJKSSgRu#fr0SL{\"><field name=\"NAME\">ina226_0</field></block></value><value name=\"VALUE2\"><block type=\"text\" id=\"-A{I/cB/n-_o|wL$]*!Q\"><field name=\"TEXT\">A</field></block></value></block></value></block></value><next><block type=\"lvgl_label_set_text\" id=\"lL:LROk,);F!v$r~!*Y.\"><field name=\"NAME\">label2</field><value name=\"VALUE\"><shadow type=\"text\" id=\"`RyLt}xm#adxMosk${VF\"><field name=\"TEXT\">hello M5</field></shadow><block type=\"text_add_str\" id=\"VMyqpfyBldWAw}GPIyK}\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"W_+f`.voFpi{lLJTd.0J\"><field name=\"TEXT\">Power:</field></shadow></value><value name=\"VALUE2\"><block type=\"text_add_str\" id=\"QjcMSX_AHt`w];2eAHeb\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"*]O=3H}ZG^@{cqu1)9):\" disabled=\"true\"><field name=\"TEXT\">Bus Voltage:</field></shadow><block type=\"unit_ina226_read_power\" id=\"KLY|EjlT%!6m{xq;q*$g\"><field name=\"NAME\">ina226_0</field></block></value><value name=\"VALUE2\"><block type=\"text\" id=\"6+wl^_qQ_vggn6ZwWv]m\"><field name=\"TEXT\">W</field></block></value></block></value></block></value><next><block type=\"lvgl_label_set_text\" id=\"~kAMkhXI%Axgl=eEKykE\"><field name=\"NAME\">label3</field><value name=\"VALUE\"><shadow type=\"text\" id=\"`RyLt}xm#adxMosk${VF\"><field name=\"TEXT\">hello M5</field></shadow><block type=\"text_add_str\" id=\"ZNPiVXEW[Uf3z-)]8C4@\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"!FiI_V2Pm6Mu2ph-_%X0\"><field name=\"TEXT\">Shunt Voltage:</field></shadow></value><value name=\"VALUE2\"><block type=\"text_add_str\" id=\"Q`1,^N3OiVyr.MdXEey(\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"*]O=3H}ZG^@{cqu1)9):\"><field name=\"TEXT\">Bus Voltage:</field></shadow><block type=\"unit_ina226_read_shunt_voltage\" id=\"#c(`sFx`,KU,J0,ye]gh\"><field name=\"NAME\">ina226_0</field></block></value><value name=\"VALUE2\"><block type=\"text\" id=\"xh@.|Y;gk?eMNcu@8FPZ\"><field name=\"TEXT\">V</field></block></value></block></value></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block>","screen":[{"simulationName":"Built-in","type":"builtin","width":320,"height":240,"scale":0.77,"screenName":"","blockId":"","screenColorType":0,"rotation":1,"id":"builtin","createTime":1754883745052}],"logicWhenNum":0,"customList":[]}

0 commit comments

Comments
 (0)