From ed71bf34ffa663a31d83dc77ab87f1a14d081003 Mon Sep 17 00:00:00 2001 From: Tangxiulin <11016272+ha-ha-earl@user.noreply.gitee.com> Date: Tue, 18 Mar 2025 11:55:36 +0800 Subject: [PATCH] =?UTF-8?q?wiki=E4=B8=ADgpio=E8=A1=A8=E6=A0=BC=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=B3=A8=E9=87=8A=E6=94=BE=E5=88=B0=E6=AD=A3=E6=96=87?= =?UTF-8?q?=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/peripherals/machine.Pin.md | 78 +++++++++++++++-------------------- zh/peripherals/machine.Pin.md | 77 ++++++++++++++-------------------- 2 files changed, 65 insertions(+), 90 deletions(-) diff --git a/en/peripherals/machine.Pin.md b/en/peripherals/machine.Pin.md index 5271c3b..808ead8 100644 --- a/en/peripherals/machine.Pin.md +++ b/en/peripherals/machine.Pin.md @@ -1961,18 +1961,6 @@ class machine.Pin(GPIOn, direction, pullMode, level) - - Note: - - - 1.I&PU: In the input mode, only the floating and pull-up modes are supported - - - 2.I&PD: In the input mode, only floating and drop-down modes are supported - - - 3. The ExtInt function of the EC600E does not support both rising and falling edges to trigger an interrupt - GPIO1 Pin10(I&PU) @@ -2115,30 +2103,6 @@ class machine.Pin(GPIOn, direction, pullMode, level) - - Note: - - - 1.I&PU: In the input mode, only the floating and pull-up modes are supported - - - 2.I&PD: In the input mode, only floating and drop-down modes are supported - - - 3.EC800ECN_LE&LQ&CG Unavailable: The pin of this model module is suspended internally, so it cannot be used - - - 4. Pin67, Pin66, Pin57, and Pin58 of the module share the same internal IO, that is, when the level of GPIO13 is changed, Pin57 and Pin67 will change simultaneously - - - 5. On the module of EC800ECN_LE&LQ&CG model, Pin57 and Pin58 are suspended internally, so only Pin67 and Pin66 can be used as GPIO13 and 14 - - - 6. The ExtInt function of the EC800E does not support the simultaneous rise and fall of the ExTINt edge - - - 7.Pin55, 80, and 81 cannot be used with Pin64, 63, and 62 (SIM2 pins), respectively - GPIO1 Pin30(I&PD) @@ -2281,15 +2245,6 @@ class machine.Pin(GPIOn, direction, pullMode, level) - - Note: - - - 1. When AGPIO is in sleep mode, the level state remains unchanged, while the level of ordinary GPIO cannot be maintained during sleep - - - 2.GPIO27, GPIO39, and GPIO40 have weak driving capabilities, so it is recommended to use them only as input pins - GPIO1 Pin30 @@ -3786,6 +3741,39 @@ class machine.Pin(GPIOn, direction, pullMode, level) +
+
+
+

Note:

+

1.I&PU: In the input mode, only the floating and pull-up modes are supported

+

2.I&PD: In the input mode, only floating and drop-down modes are supported

+

3.The ExtInt function of the EC600E does not support both rising and falling edges to trigger an interrupt

+
+
+ +
+
+

Note:

+

1.I&PU: In the input mode, only the floating and pull-up modes are supported

+

2.I&PD: In the input mode, only floating and drop-down modes are supported

+

3.EC800ECN_LE&LQ&CG Unavailable: The pin of this model module is suspended internally, so it cannot be used

+

4.Pin67, Pin66, Pin57, and Pin58 of the module share the same internal IO, that is, when the level of GPIO13 is changed, Pin57 and Pin67 will change simultaneously

+

5.On the module of EC800ECN_LE&LQ&CG model, Pin57 and Pin58 are suspended internally, so only Pin67 and Pin66 can be used as GPIO13 and 14

+

6. The ExtInt function of the EC800E does not support the simultaneous rise and fall of the ExTINt edge

+

7.Pin55, 80, and 81 cannot be used with Pin64, 63, and 62 (SIM2 pins), respectively

+
+
+ +
+
+

Note:

+

1.When AGPIO is in sleep mode, the level state remains unchanged, while the level of ordinary GPIO cannot be maintained during sleep

+

2.GPIO27, GPIO39, and GPIO40 have weak driving capabilities, so it is recommended to use them only as input pins

+
+
+
+ + ## Methods ### `Pin.read` diff --git a/zh/peripherals/machine.Pin.md b/zh/peripherals/machine.Pin.md index 34722c0..635fe62 100644 --- a/zh/peripherals/machine.Pin.md +++ b/zh/peripherals/machine.Pin.md @@ -1963,18 +1963,6 @@ class machine.Pin(GPIOn, direction, pullMode, level) - - 注: - - - 1.I&PU:输入模式下,仅支持浮空和上拉模式 - - - 2.I&PD:输入模式下,仅支持浮空和下拉模式 - - - 3.EC600E的ExtInt功能不支持上升和下降沿同时触发中断 - GPIO1 引脚号10(I&PU) @@ -2117,30 +2105,6 @@ class machine.Pin(GPIOn, direction, pullMode, level) - - 注: - - - 1.I&PU:输入模式下,仅支持浮空和上拉模式 - - - 2.I&PD:输入模式下,仅支持浮空和下拉模式 - - - 3.EC800ECN_LE&LQ&CG不可用:指该型号模块的引脚内部悬空,所以无法使用 - - - 4.模组的Pin67、Pin66 和Pin57、Pin58 共用内部同一路IO,即改变GPIO13的电平,Pin57和Pin67会同时变化 - - - 5.在EC800ECN_LE&LQ&CG型号的模组上,Pin57、Pin58内部悬空,所以仅可使用Pin67、Pin66作为GPIO13、14 - - - 6.EC800E的ExtInt功能不支持上升和下降沿同时触发中断 - - - 7.Pin55、80、81分别不可与Pin64、63、62(SIM2管脚)同时使用 - GPIO1 引脚号30(I&PD) @@ -2283,15 +2247,6 @@ class machine.Pin(GPIOn, direction, pullMode, level) - - 注: - - - 1.AGPIO在睡眠模式状态下,电平状态保持不变,普通GPIO在睡眠状态下电平不能保持 - - - 2.GPIO27、GPIO39、GPIO40驱动能力较弱,建议仅做输入引脚使用 - GPIO1 引脚号30 @@ -3731,6 +3686,38 @@ class machine.Pin(GPIOn, direction, pullMode, level) +
+
+
+

注:

+

1.I&PU:输入模式下,仅支持浮空和上拉模式

+

2.I&PD:输入模式下,仅支持浮空和下拉模式

+

3.EC600E的ExtInt功能不支持上升和下降沿同时触发中断

+
+
+ +
+
+

注:

+

1.I&PU:输入模式下,仅支持浮空和上拉模式

+

2.I&PD:输入模式下,仅支持浮空和下拉模式

+

3.EC800ECN_LE&LQ&CG不可用:指该型号模块的引脚内部悬空,所以无法使用

+

4.模组的Pin67、Pin66 和Pin57、Pin58 共用内部同一路IO,即改变GPIO13的电平,Pin57和Pin67会同时变化

+

5.在EC800ECN_LE&LQ&CG型号的模组上,Pin57、Pin58内部悬空,所以仅可使用Pin67、Pin66作为GPIO13、14

+

6.EC800E的ExtInt功能不支持上升和下降沿同时触发中断

+

7.Pin55、80、81分别不可与Pin64、63、62(SIM2管脚)同时使用

+
+
+ +
+
+

注:

+

1.AGPIO在睡眠模式状态下,电平状态保持不变,普通GPIO在睡眠状态下电平不能保持

+

2.GPIO27、GPIO39、GPIO40驱动能力较弱,建议仅做输入引脚使用

+
+
+
+ ## 方法 ### `Pin.read` -- Gitee