Skip to content

Commit adb7bc5

Browse files
Tinyu-Zhaolbuque
authored andcommitted
docs: Fix errors in MQ documentation.
Signed-off-by: [email protected] <[email protected]>
1 parent 7c0c0f2 commit adb7bc5

File tree

3 files changed

+66
-87
lines changed

3 files changed

+66
-87
lines changed

docs/en/refs/unit.mq.ref

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

2-
.. |MQ| image:: https://static-cdn.m5stack.com/resource/docs/products/unit/co2/co2_01.webp
3-
:target: https://docs.m5stack.com/en/unit/co2
2+
.. |MQ| image:: https://m5stack-doc.oss-cn-shenzhen.aliyuncs.com/1168/U199_Unit_MQ_01.webp
3+
:target: https://docs.m5stack.com/en/unit/Unit_MQ
44
:height: 200px
55
:width: 200px
66

docs/en/units/mq.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ Support the following products:
1616
UiFlow2 Example
1717
---------------
1818

19-
get MQ value
20-
^^^^^^^^^^^^^^^
19+
get MQ ADC value
20+
^^^^^^^^^^^^^^^^^
2121

2222
Open the |mq_core2_example.m5f2| project in UiFlow2.
2323

24-
This example gets the MQ value of the MQ Unit and displays it on the screen.
24+
This example gets the ADC value of the MQ Unit and displays it on the screen.
2525

2626
UiFlow2 Code Block:
2727

@@ -34,10 +34,10 @@ Example output:
3434
MicroPython Example
3535
-------------------
3636

37-
get MQ value
38-
^^^^^^^^^^^^^^^
37+
get MQ ADC value
38+
^^^^^^^^^^^^^^^^^
3939

40-
This example gets the MQ value of the MQ Unit and displays it on the screen.
40+
This example gets the ADC value of the MQ Unit and displays it on the screen.
4141

4242
MicroPython Code Block:
4343

docs/locales/zh_CN/LC_MESSAGES/units/mq.po

Lines changed: 58 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: UIFlow2 Programming Guide \n"
1111
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2025-08-12 14:08+0800\n"
12+
"POT-Creation-Date: 2025-09-01 10:26+0800\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1515
"Language: zh_CN\n"
@@ -48,8 +48,9 @@ msgstr "UiFlow2应用示例"
4848

4949
#: ../../en/units/mq.rst:20 ../../en/units/mq.rst:38
5050
#: 722377f56e7d48b694cf8999a00c8980 f889e9672de8478e96aa3a1ba9f0be55
51-
msgid "get MQ value"
52-
msgstr "获取MQ值"
51+
#, fuzzy
52+
msgid "get MQ ADC value"
53+
msgstr "获取ADC值."
5354

5455
#: ../../en/units/mq.rst:22 143de4bc84ce427aaf1f02ad7f87054c
5556
msgid "Open the |mq_core2_example.m5f2| project in UiFlow2."
@@ -58,23 +59,17 @@ msgstr "在UiFlow2中打开 |mq_core2_example.m5f2| 项目."
5859
#: ../../en/units/mq.rst:24 ../../en/units/mq.rst:40
5960
#: 0b4ecd28addc42e6b614ebd3e6657254 c9fc139499cf4da98571b55e7b219191
6061
msgid ""
61-
"This example gets the MQ value of the MQ Unit and displays it on the "
62+
"This example gets the ADC value of the MQ Unit and displays it on the "
6263
"screen."
63-
msgstr "此示例获取MQ Unit的MQ值并在屏幕上显示."
64-
65-
#: ../../en/units/mq.rst:26 1f19952e46d840c082bb850e1f681d33
66-
#: 31670619470e4c9480d4feea09a26d6e 31f63e94115f423698ccc0579bc84d53
67-
#: 35005d5388ee4688b09d3cb30bf95871 4dfd4d9a7431420196373e96bfd77789
68-
#: 6712762daf43420dbcd625992af25824 6ba5270f1e624865a889aada3d72edae
69-
#: 7f330554cc114a92959e0ab332a81fc9 a1f1aa18056849b58f69cf10cc4a2093
70-
#: aebd21d6a89f40ecb74e15fce408405a b064886d3e37468e85dacf355236b6e0
71-
#: ba9d6a89f7c0466ead1744b408765d19 cff5bbd45ed644a5bef7e3c169504812
64+
msgstr "此示例获取MQ Unit的 ADC 值并在屏幕上显示."
65+
66+
#: ../../en/units/mq.rst:26 31670619470e4c9480d4feea09a26d6e
67+
#: 35005d5388ee4688b09d3cb30bf95871 6ba5270f1e624865a889aada3d72edae
68+
#: a1f1aa18056849b58f69cf10cc4a2093 b064886d3e37468e85dacf355236b6e0
7269
#: d4379243ed4446d7a37d345b20ebe936 of unit.mq.MQUnit:6
7370
#: unit.mq.MQUnit.get_adc_value:7 unit.mq.MQUnit.get_firmware_version:6
74-
#: unit.mq.MQUnit.get_heat_time:6 unit.mq.MQUnit.get_i2c_address:6
75-
#: unit.mq.MQUnit.get_mq_mode:6 unit.mq.MQUnit.get_ntc_adc_value:7
76-
#: unit.mq.MQUnit.get_ntc_res_value:6 unit.mq.MQUnit.get_valid_tags:6
77-
#: unit.mq.MQUnit.get_voltage:7 unit.mq.MQUnit.set_heat_time:6
71+
#: unit.mq.MQUnit.get_i2c_address:6 unit.mq.MQUnit.get_mq_mode:6
72+
#: unit.mq.MQUnit.get_valid_tags:6 unit.mq.MQUnit.set_heat_time:6
7873
#: unit.mq.MQUnit.set_i2c_address:5 unit.mq.MQUnit.set_mq_mode:10
7974
msgid "UiFlow2 Code Block:"
8075
msgstr "UiFlow2 代码块:"
@@ -101,20 +96,16 @@ msgstr ""
10196
msgid "MicroPython Example"
10297
msgstr "MicroPython 示例"
10398

104-
#: ../../en/units/mq.rst:42 046780955ad4496e9cf8b2525e9ab4fa
105-
#: 121ac930d713418083b370078575f0f4 23e0741b1d9c4d9086b7b847771ffc36
106-
#: 2743ab8bf8ca4e00b3c2c07e0082e5b0 2af8ec066aae414cacb109c71b09a690
107-
#: 4bbfbdebab3345448032714990218c5d 678b5df007be47fd80b6a396ca8e4696
108-
#: 7409a311d273473bae9eb2bf0e9e35d4 77afaaeec2f44f8a9cf427a8bca1c8f6
109-
#: 7bcc319a9f1a40aaaa884c7facd072eb 7ce03691dff54837a4da07fdcc12e122
99+
#: ../../en/units/mq.rst:42 121ac930d713418083b370078575f0f4
100+
#: 2af8ec066aae414cacb109c71b09a690 4bbfbdebab3345448032714990218c5d
101+
#: 7409a311d273473bae9eb2bf0e9e35d4 7ce03691dff54837a4da07fdcc12e122
110102
#: c48050d2f6c947ffb8ce27d895013973 cbbcab2e21e2415a8fd078d07fd1016e
111-
#: d6a9bc36138b494e84c8ab99aeda5831 db280f313f0142818fa54b90e68ab82b
112-
#: f464b940cf36407083cc02aab5262df8 of unit.mq.MQUnit:10
103+
#: d6a9bc36138b494e84c8ab99aeda5831 of unit.mq.MQUnit:10
113104
#: unit.mq.MQUnit.get_adc_value:11 unit.mq.MQUnit.get_firmware_version:10
114-
#: unit.mq.MQUnit.get_heat_time:10 unit.mq.MQUnit.get_i2c_address:10
105+
#: unit.mq.MQUnit.get_heat_time:6 unit.mq.MQUnit.get_i2c_address:10
115106
#: unit.mq.MQUnit.get_led_status:6 unit.mq.MQUnit.get_mq_mode:10
116-
#: unit.mq.MQUnit.get_ntc_adc_value:11 unit.mq.MQUnit.get_ntc_res_value:10
117-
#: unit.mq.MQUnit.get_valid_tags:10 unit.mq.MQUnit.get_voltage:11
107+
#: unit.mq.MQUnit.get_ntc_adc_value:7 unit.mq.MQUnit.get_ntc_res_value:6
108+
#: unit.mq.MQUnit.get_valid_tags:10 unit.mq.MQUnit.get_voltage:7
118109
#: unit.mq.MQUnit.set_heat_time:10 unit.mq.MQUnit.set_i2c_address:9
119110
#: unit.mq.MQUnit.set_led_status:5 unit.mq.MQUnit.set_mq_mode:14
120111
msgid "MicroPython Code Block:"
@@ -137,13 +128,12 @@ msgid "Create a MQUnit object."
137128
msgstr "创建一个MQUnit对象."
138129

139130
#: ../../en/units/mq.rst 160e2dff03164c90bc2acb781f77239f
140-
#: 255dfe3a1f22409c8feee3f4d5616fa9 2bde080fec5e48f8b8da6e5957efe9e5
141-
#: 5ba457cec2fa41b588e611390e38455d ad531f618e644b968e86a294f1ddf3fa
142-
#: bffa37ef49394bab8aee3ccce04119e1 d4a9cec4a0294ce0808d475dc4733df0
143-
#: d949aa001f3746a9b9585a774eb89fd5 of unit.mq.MQUnit.get_adc_value
144-
#: unit.mq.MQUnit.get_ntc_adc_value unit.mq.MQUnit.get_voltage
145-
#: unit.mq.MQUnit.set_heat_time unit.mq.MQUnit.set_i2c_address
146-
#: unit.mq.MQUnit.set_led_status unit.mq.MQUnit.set_mq_mode
131+
#: 2bde080fec5e48f8b8da6e5957efe9e5 ad531f618e644b968e86a294f1ddf3fa
132+
#: bffa37ef49394bab8aee3ccce04119e1 d949aa001f3746a9b9585a774eb89fd5 of
133+
#: unit.mq.MQUnit.get_adc_value unit.mq.MQUnit.get_ntc_adc_value
134+
#: unit.mq.MQUnit.get_voltage unit.mq.MQUnit.set_heat_time
135+
#: unit.mq.MQUnit.set_i2c_address unit.mq.MQUnit.set_led_status
136+
#: unit.mq.MQUnit.set_mq_mode
147137
msgid "Parameters"
148138
msgstr ""
149139

@@ -199,11 +189,8 @@ msgstr ""
199189
msgid "Get the current working mode of the MQ sensor."
200190
msgstr "获取当前MQ传感器的工作模式."
201191

202-
#: 23445d077f914813a528053dffed824b 35ad4d147da340d19afe1c7587315cbc
203-
#: 3e4d2e4ce2ce41888e5bff84b3d27f49 59a8ded95de44d048e2e0b88b587388d
204-
#: 770274fa41024c2195989e0c5f527e1e 78205eb7d20748258b8b31bd8a50906f
205-
#: 82d1e9666af340e88707eb40af956e04 90ce39c21353451988e0a36577159a1a
206-
#: a75ed69996e64072b146b20ef722429f c04e45028fe74982a11dad5d32f4375b of
192+
#: 23445d077f914813a528053dffed824b 3e4d2e4ce2ce41888e5bff84b3d27f49
193+
#: 82d1e9666af340e88707eb40af956e04 a75ed69996e64072b146b20ef722429f of
207194
#: unit.mq.MQUnit.get_adc_value unit.mq.MQUnit.get_firmware_version
208195
#: unit.mq.MQUnit.get_heat_time unit.mq.MQUnit.get_i2c_address
209196
#: unit.mq.MQUnit.get_led_status unit.mq.MQUnit.get_mq_mode
@@ -216,11 +203,8 @@ msgstr "返回值"
216203
msgid "Current working mode value."
217204
msgstr "当前工作模式值."
218205

219-
#: 1fa657eb13504ce688a421e00f4f825e 2135076354dd41ee95b0104eca171f3b
220-
#: 2d2bcd8c12b54fd7ae4c3308534c9cd3 2e72c2824a254518b818b1e0e1a02b17
221-
#: b1c791375eb04f04bb68c6bb67bd89a1 b5f6cc420eb5466eb0972c615d6c8f0c
222-
#: d248d30308b1410dacf198d0e30e784b ddd74f18307f4fd6ac2ee5895cf8e758
223-
#: e606858e4d19450b8e6c91386f64c235 f9f7b07108ff441baa3b45564749aeb2 of
206+
#: 2135076354dd41ee95b0104eca171f3b 2d2bcd8c12b54fd7ae4c3308534c9cd3
207+
#: b1c791375eb04f04bb68c6bb67bd89a1 f9f7b07108ff441baa3b45564749aeb2 of
224208
#: unit.mq.MQUnit.get_adc_value unit.mq.MQUnit.get_firmware_version
225209
#: unit.mq.MQUnit.get_heat_time unit.mq.MQUnit.get_i2c_address
226210
#: unit.mq.MQUnit.get_led_status unit.mq.MQUnit.get_mq_mode
@@ -284,20 +268,12 @@ msgstr "获取加热器高低电平时间."
284268
msgid "[high_level_time, low_level_time]"
285269
msgstr ""
286270

287-
#: 5d0ef8f280ba4fc2b74ba984ca70ecb1 of unit.mq.MQUnit.get_heat_time:8
288-
msgid "|get_heat_time.png|"
289-
msgstr ""
290-
291-
#: ../../en/refs/unit.mq.ref:14 f186c978d32b44c4a85b4648e8a7878e
292-
msgid "get_heat_time.png"
293-
msgstr ""
294-
295271
#: 5435ab51fbd94af685ad9d73904196b5 of unit.mq.MQUnit.get_adc_value:1
296272
msgid "Get ADC value."
297273
msgstr "获取ADC值."
298274

299-
#: 2e129dedba904fc8aa50e3816ec15626 e55bc86273ee42009ab4ff3c30a78e3d of
300-
#: unit.mq.MQUnit.get_adc_value:3 unit.mq.MQUnit.get_ntc_adc_value:3
275+
#: 2e129dedba904fc8aa50e3816ec15626 of unit.mq.MQUnit.get_adc_value:3
276+
#: unit.mq.MQUnit.get_ntc_adc_value:3
301277
msgid "0 for 8-bit, 1 for 12-bit."
302278
msgstr "0 代表8位ADC数值,1 代表12位ADC数值."
303279

@@ -337,14 +313,6 @@ msgstr "获取内部NTC ADC值."
337313
msgid "NTC ADC value."
338314
msgstr "NTC ADC值."
339315

340-
#: 6374e9ad0716452b8f766a6e0bab0164 of unit.mq.MQUnit.get_ntc_adc_value:9
341-
msgid "|get_ntc_adc_value.png|"
342-
msgstr ""
343-
344-
#: ../../en/refs/unit.mq.ref:17 9a13d0fe4cbf44beb20dd5a3f5ed49c1
345-
msgid "get_ntc_adc_value.png"
346-
msgstr ""
347-
348316
#: 0db410b26286408199244b84ee67877e of unit.mq.MQUnit.get_ntc_res_value:1
349317
msgid "Get internal NTC resistance value."
350318
msgstr "获取内部NTC电阻值."
@@ -353,14 +321,6 @@ msgstr "获取内部NTC电阻值."
353321
msgid "Resistance value."
354322
msgstr "电阻值."
355323

356-
#: c1f6484b034d48e2a1e1bc56df39542d of unit.mq.MQUnit.get_ntc_res_value:8
357-
msgid "|get_ntc_res_value.png|"
358-
msgstr ""
359-
360-
#: ../../en/refs/unit.mq.ref:18 28194a1ec5fe4cc78574b41e56d52603
361-
msgid "get_ntc_res_value.png"
362-
msgstr ""
363-
364324
#: 15e786c7357c44f0a327d8e1eb99302e of unit.mq.MQUnit.get_voltage:1
365325
msgid "Get voltage value from a specific channel."
366326
msgstr "获取指定通道的电压值."
@@ -373,14 +333,6 @@ msgstr "通道号."
373333
msgid "Voltage value."
374334
msgstr "电压值."
375335

376-
#: adee21bb66de41d6adca194d733b446f of unit.mq.MQUnit.get_voltage:9
377-
msgid "|get_voltage.png|"
378-
msgstr ""
379-
380-
#: ../../en/refs/unit.mq.ref:19 45331917ff4b4e809731bca71cab93ef
381-
msgid "get_voltage.png"
382-
msgstr ""
383-
384336
#: e287e9ace673452f956c46c3d73cb850 of unit.mq.MQUnit.get_firmware_version:1
385337
msgid "Get firmware version."
386338
msgstr "获取固件版本."
@@ -429,3 +381,30 @@ msgstr ""
429381
msgid "set_i2c_address.png"
430382
msgstr ""
431383

384+
#~ msgid "|get_heat_time.png|"
385+
#~ msgstr ""
386+
387+
#~ msgid "get_heat_time.png"
388+
#~ msgstr ""
389+
390+
#~ msgid "|get_ntc_adc_value.png|"
391+
#~ msgstr ""
392+
393+
#~ msgid "get_ntc_adc_value.png"
394+
#~ msgstr ""
395+
396+
#~ msgid "|get_ntc_res_value.png|"
397+
#~ msgstr ""
398+
399+
#~ msgid "get_ntc_res_value.png"
400+
#~ msgstr ""
401+
402+
#~ msgid "|get_voltage.png|"
403+
#~ msgstr ""
404+
405+
#~ msgid "get_voltage.png"
406+
#~ msgstr ""
407+
408+
#~ msgid "get MQ value"
409+
#~ msgstr "获取MQ值"
410+

0 commit comments

Comments
 (0)