From 0f9784919c129a089e8a62094be8bfe013b36ebf Mon Sep 17 00:00:00 2001 From: Tangxiulin <11016272+ha-ha-earl@user.noreply.gitee.com> Date: Thu, 20 Mar 2025 10:40:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4pin=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E4=B8=AD=E7=9A=84EC100Y,EC600S,EC600N=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/peripherals/machine.Pin.md | 566 +-------------------------------- zh/peripherals/machine.Pin.md | 567 +--------------------------------- 2 files changed, 2 insertions(+), 1131 deletions(-) diff --git a/en/peripherals/machine.Pin.md b/en/peripherals/machine.Pin.md index 67c83e2..748e9de 100644 --- a/en/peripherals/machine.Pin.md +++ b/en/peripherals/machine.Pin.md @@ -50,271 +50,9 @@ class machine.Pin(GPIOn, direction, pullMode, level) **Mapping Relationship Between GPIO Pin Numbers and Physical Pins:** -> Description of GPIO corresponding pin numbers: GPIO pin numbers provided in the document correspond to external pin numbers of the module. For example, for EC100Y-CN module, GPIO1 corresponds to pin22, which is an external pin number of the module. See the provided hardware documents for external pin numbers of the module. +> Description of GPIO corresponding pin numbers: GPIO pin numbers provided in the document correspond to external pin numbers of the module. For example, for EC600M-CN module, GPIO1 corresponds to pin10, which is an external pin number of the module. See the provided hardware documents for external pin numbers of the module.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GPIO numberPin number
GPIO1Pin22
GPIO2Pin23
GPIO3Pin38
GPIO4Pin53
GPIO5Pin54
GPIO6Pin104
GPIO7Pin105
GPIO8Pin106
GPIO9Pin107
GPIO10Pin178
GPIO11Pin195
GPIO12Pin196
GPIO13Pin197
GPIO14Pin198
GPIO15Pin199
GPIO16Pin203
GPIO17Pin204
GPIO18Pin214
GPIO19Pin215
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GPIO numberPin number
GPIO1Pin10
GPIO2Pin11
GPIO3Pin12
GPIO4Pin13
GPIO5Pin14
GPIO6Pin15
GPIO7Pin16
GPIO8Pin39
GPIO9Pin40
GPIO10Pin48
GPIO11Pin58
GPIO12Pin59
GPIO13Pin60
GPIO14Pin61
GPIO15Pin62
GPIO16Pin63
GPIO17Pin69
GPIO18Pin70
GPIO19Pin1
GPIO20Pin3
GPIO21Pin49
GPIO22Pin50
GPIO23Pin51
GPIO24Pin52
GPIO25Pin53
GPIO26Pin54
GPIO27Pin55
GPIO28Pin56
GPIO29Pin57
GPIO30Pin2
GPIO31Pin66
GPIO32Pin65
GPIO33Pin67
GPIO34Pin64
GPIO35Pin4
GPIO36Pin31
GPIO37Pin32
GPIO38Pin33
GPIO39Pin34
GPIO40Pin71
GPIO41Pin72
- @@ -3869,308 +3607,6 @@ I/O mode of pins. ## Constants
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ConstantDescription
Pin.GPIO1GPIO1
Pin.GPIO2GPIO2
Pin.GPIO3GPIO3
Pin.GPIO4GPIO4
Pin.GPIO5GPIO5
Pin.GPIO6GPIO6
Pin.GPIO7GPIO7
Pin.GPIO8GPIO8
Pin.GPIO9GPIO9
Pin.GPIO10GPIO10
Pin.GPIO11GPIO11
Pin.GPIO12GPIO12
Pin.GPIO13GPIO13
Pin.GPIO14GPIO14
Pin.GPIO15GPIO15
Pin.GPIO16GPIO16
Pin.GPIO17GPIO17
Pin.GPIO18GPIO18
Pin.GPIO19GPIO19
Pin.INInput mode
Pin.OUTOutput mode
Pin.PULL_DISABLEFloating mode
Pin.PULL_PUPull-up mode
Pin.PULL_PDPull-down mode
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ConstantDescription
Pin.GPIO1GPIO1
Pin.GPIO2GPIO2
Pin.GPIO3GPIO3
Pin.GPIO4GPIO4
Pin.GPIO5GPIO5
Pin.GPIO6GPIO6
Pin.GPIO7GPIO7
Pin.GPIO8GPIO8
Pin.GPIO9GPIO9
Pin.GPIO10GPIO10
Pin.GPIO11GPIO11
Pin.GPIO12GPIO12
Pin.GPIO13GPIO13
Pin.GPIO14GPIO14
Pin.GPIO15GPIO15
Pin.GPIO16GPIO16
Pin.GPIO17GPIO17
Pin.GPIO18GPIO18
Pin.GPIO19GPIO19
Pin.GPIO20GPIO20
Pin.GPIO21GPIO21
Pin.GPIO22GPIO22
Pin.GPIO23GPIO23
Pin.GPIO24GPIO24
Pin.GPIO25GPIO25
Pin.GPIO26GPIO26
Pin.GPIO27GPIO27
Pin.GPIO28GPIO28
Pin.GPIO29GPIO29
Pin.GPIO30GPIO30
Pin.GPIO31GPIO31
Pin.GPIO32GPIO32
Pin.GPIO33GPIO33
Pin.GPIO34GPIO34
Pin.GPIO35GPIO35
Pin.GPIO36GPIO36
Pin.GPIO37GPIO37
Pin.GPIO38GPIO38
Pin.GPIO39GPIO39
Pin.GPIO40GPIO40
Pin.GPIO41GPIO41
Pin.INInput mode
Pin.OUTOutput mode
Pin.PULL_DISABLEFloating mode
Pin.PULL_PUPull-up mode
Pin.PULL_PDPull-down mode
- diff --git a/zh/peripherals/machine.Pin.md b/zh/peripherals/machine.Pin.md index 90d9459..9aba413 100644 --- a/zh/peripherals/machine.Pin.md +++ b/zh/peripherals/machine.Pin.md @@ -50,273 +50,10 @@ class machine.Pin(GPIOn, direction, pullMode, level) **GPIO引脚编号与物理引脚的映射关系:** -> GPIO对应引脚号说明:文档中提供的GPIO引脚号对应的为模块外部的引脚编号,例如EC100YCN下GPIO1对应引脚号22,这里的引脚号22为模块外部的引脚编号。可参考提供的硬件资料查看模块外部的引脚编号。 +> GPIO对应引脚号说明:文档中提供的GPIO引脚号对应的为模块外部的引脚编号,例如EC600MCN下GPIO1对应引脚号10,这里的引脚号10为模块外部的引脚编号。可参考提供的硬件资料查看模块外部的引脚编号。 **平台引脚对应关系:**
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GPIO号引脚号
GPIO1引脚号22
GPIO2引脚号23
GPIO3引脚号38
GPIO4引脚号53
GPIO5引脚号54
GPIO6引脚号104
GPIO7引脚号105
GPIO8引脚号106
GPIO9引脚号107
GPIO10引脚号178
GPIO11引脚号195
GPIO12引脚号196
GPIO13引脚号197
GPIO14引脚号198
GPIO15引脚号199
GPIO16引脚号203
GPIO17引脚号204
GPIO18引脚号214
GPIO19引脚号215
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GPIO号引脚号
GPIO1引脚号10
GPIO2引脚号11
GPIO3引脚号12
GPIO4引脚号13
GPIO5引脚号14
GPIO6引脚号15
GPIO7引脚号16
GPIO8引脚号39
GPIO9引脚号40
GPIO10引脚号48
GPIO11引脚号58
GPIO12引脚号59
GPIO13引脚号60
GPIO14引脚号61
GPIO15引脚号62
GPIO16引脚号63
GPIO17引脚号69
GPIO18引脚号70
GPIO19引脚号1
GPIO20引脚号3
GPIO21引脚号49
GPIO22引脚号50
GPIO23引脚号51
GPIO24引脚号52
GPIO25引脚号53
GPIO26引脚号54
GPIO27引脚号55
GPIO28引脚号56
GPIO29引脚号57
GPIO30引脚号2
GPIO31引脚号66
GPIO32引脚号65
GPIO33引脚号67
GPIO34引脚号64
GPIO35引脚号4
GPIO36引脚号31
GPIO37引脚号32
GPIO38引脚号33
GPIO39引脚号34
GPIO40引脚号71
GPIO41引脚号72
- - @@ -3805,308 +3542,6 @@ Pin.get_dir() ## 常量
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
常量说明
Pin.GPIO1GPIO1
Pin.GPIO2GPIO2
Pin.GPIO3GPIO3
Pin.GPIO4GPIO4
Pin.GPIO5GPIO5
Pin.GPIO6GPIO6
Pin.GPIO7GPIO7
Pin.GPIO8GPIO8
Pin.GPIO9GPIO9
Pin.GPIO10GPIO10
Pin.GPIO11GPIO11
Pin.GPIO12GPIO12
Pin.GPIO13GPIO13
Pin.GPIO14GPIO14
Pin.GPIO15GPIO15
Pin.GPIO16GPIO16
Pin.GPIO17GPIO17
Pin.GPIO18GPIO18
Pin.GPIO19GPIO19
Pin.IN输入模式
Pin.OUT输出模式
Pin.PULL_DISABLE浮空模式
Pin.PULL_PU上拉模式
Pin.PULL_PD下拉模式
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
常量说明
Pin.GPIO1GPIO1
Pin.GPIO2GPIO2
Pin.GPIO3GPIO3
Pin.GPIO4GPIO4
Pin.GPIO5GPIO5
Pin.GPIO6GPIO6
Pin.GPIO7GPIO7
Pin.GPIO8GPIO8
Pin.GPIO9GPIO9
Pin.GPIO10GPIO10
Pin.GPIO11GPIO11
Pin.GPIO12GPIO12
Pin.GPIO13GPIO13
Pin.GPIO14GPIO14
Pin.GPIO15GPIO15
Pin.GPIO16GPIO16
Pin.GPIO17GPIO17
Pin.GPIO18GPIO18
Pin.GPIO19GPIO19
Pin.GPIO20GPIO20
Pin.GPIO21GPIO21
Pin.GPIO22GPIO22
Pin.GPIO23GPIO23
Pin.GPIO24GPIO24
Pin.GPIO25GPIO25
Pin.GPIO26GPIO26
Pin.GPIO27GPIO27
Pin.GPIO28GPIO28
Pin.GPIO29GPIO29
Pin.GPIO30GPIO30
Pin.GPIO31GPIO31
Pin.GPIO32GPIO32
Pin.GPIO33GPIO33
Pin.GPIO34GPIO34
Pin.GPIO35GPIO35
Pin.GPIO36GPIO36
Pin.GPIO37GPIO37
Pin.GPIO38GPIO38
Pin.GPIO39GPIO39
Pin.GPIO40GPIO40
Pin.GPIO41GPIO41
Pin.IN输入模式
Pin.OUT输出模式
Pin.PULL_DISABLE浮空模式
Pin.PULL_PU上拉模式
Pin.PULL_PD下拉模式
- -- Gitee