From 68dee2b3d134b4853c501768206c49468bc935da Mon Sep 17 00:00:00 2001 From: "rex.zhou" Date: Tue, 18 Mar 2025 10:00:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8D=A2=E8=A1=8C=E7=AC=A6=E8=B0=83?= =?UTF-8?q?=E6=95=B4&IIC=E7=A4=BA=E4=BE=8B=E9=87=8D=E5=A4=8D&keypad?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E5=88=A0=E9=99=A4=E7=AC=AC=E4=B8=80=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/peripherals/machine.I2C.md | 22 +++----- en/peripherals/machine.KeyPad.md | 86 ++++++++------------------------ en/peripherals/machine.SPI.md | 22 ++++---- zh/peripherals/machine.I2C.md | 23 +++------ zh/peripherals/machine.KeyPad.md | 86 ++++++++------------------------ zh/peripherals/machine.SPI.md | 24 ++++----- 6 files changed, 77 insertions(+), 186 deletions(-) diff --git a/en/peripherals/machine.I2C.md b/en/peripherals/machine.I2C.md index bc6449c..1a1d4a2 100644 --- a/en/peripherals/machine.I2C.md +++ b/en/peripherals/machine.I2C.md @@ -12,9 +12,9 @@ This class is designed for the two-wire serial protocol for communication betwee

Parameter:

@@ -25,9 +25,9 @@ This class is designed for the two-wire serial protocol for communication betwee

Parameter:

@@ -37,24 +37,16 @@ This class is designed for the two-wire serial protocol for communication betwee

Parameter:

-**Example:** - -```python ->>> from machine import I2C ->>> # Creates an I2C object ->>> i2c_obj = I2C(I2C.I2C0, I2C.STANDARD_MODE) # Returns an I2C object -``` - **Example:** diff --git a/en/peripherals/machine.KeyPad.md b/en/peripherals/machine.KeyPad.md index 3107a4e..4870f03 100644 --- a/en/peripherals/machine.KeyPad.md +++ b/en/peripherals/machine.KeyPad.md @@ -24,14 +24,12 @@ class machine.KeyPad(row,col) - - @@ -41,14 +39,12 @@ class machine.KeyPad(row,col)
Module Maximum Row Maximum Column
EC600N 4 4
- - @@ -58,14 +54,12 @@ class machine.KeyPad(row,col)
Module Maximum Row Maximum Column
EC800N 4 4
- - @@ -75,14 +69,12 @@ class machine.KeyPad(row,col)
Module Maximum Row Maximum Column
EC600S 5 5
- - @@ -92,14 +84,12 @@ class machine.KeyPad(row,col)
Module Maximum Row Maximum Column
EC200U 6(series only suprrort 4 Row,see Pin Correspondences) 4
- - @@ -109,14 +99,12 @@ class machine.KeyPad(row,col)
Module Maximum Row Maximum Column
EC600U 6 6
- - @@ -126,14 +114,12 @@ class machine.KeyPad(row,col)
Module Maximum Row Maximum Column
EC600M 5 5
- - @@ -143,14 +129,12 @@ class machine.KeyPad(row,col)
Module Maximum Row Maximum Column
EC800M 5 5
- - @@ -160,14 +144,12 @@ class machine.KeyPad(row,col)
Module Maximum Row Maximum Column
EG810M 5(EG810MEU series only suprrort 3 Row,see Pin Correspondences) 5(EG810MEU series only suprrort 3 Row,see Pin Correspondences)
- - @@ -177,14 +159,12 @@ class machine.KeyPad(row,col)
Module Maximum Row Maximum Column
EEG912N 3 3
- - @@ -194,14 +174,12 @@ class machine.KeyPad(row,col)
Module Maximum Row Maximum Column
EG915N 4 4
- - @@ -211,14 +189,12 @@ class machine.KeyPad(row,col)
Module Maximum Row Maximum Column
EC600K 3 3
- - @@ -228,14 +204,12 @@ class machine.KeyPad(row,col)
Module Maximum Row Maximum Column
EC800K 5 5
- - @@ -252,17 +226,15 @@ class machine.KeyPad(row,col)
Module Maximum Row Maximum Column
EG800K 4 4
- - @@ -273,17 +245,15 @@ class machine.KeyPad(row,col)
Module Pin
EC600M
    -
  • Row number (output) and corresponding pins are as follows::
    Row number 0– pin49
    Row number 1– pin51
    Row number 2– pin53
    Row number 3– pin55
    Row number 4– pin56

    +
  • Row number (output) and corresponding pins are as follows::
    Row number 0– pin49
    Row number 1– pin51
    Row number 2– pin53
    Row number 3– pin55
    Row number 4– pin56

  • -
  • Column number (input) and corresponding pins are as follows:
    Column number 0– pin48
    Column number 1– pin50
    Column number 2– pin52
    Column number 3– pin54
    Column number 4– pin57

    +
  • Column number (input) and corresponding pins are as follows:
    Column number 0– pin48
    Column number 1– pin50
    Column number 2– pin52
    Column number 3– pin54
    Column number 4– pin57

- - @@ -294,17 +264,15 @@ class machine.KeyPad(row,col)
Module Pin
EC800M
    -
  • Row number (output) and corresponding pins are as follows::
    Row number 0– pin86
    Row number 1– pin76
    Row number 2– pin85
    Row number 3– pin82
    Row number 4– pin74

    +
  • Row number (output) and corresponding pins are as follows::
    Row number 0– pin86
    Row number 1– pin76
    Row number 2– pin85
    Row number 3– pin82
    Row number 4– pin74

  • -
  • Column number (input) and corresponding pins are as follows:
    Column number 0– pin87
    Column number 1– pin77
    Column number 2– pin84
    Column number 3– pin83
    Column number 4– pin75

    +
  • Column number (input) and corresponding pins are as follows:
    Column number 0– pin87
    Column number 1– pin77
    Column number 2– pin84
    Column number 3– pin83
    Column number 4– pin75

- - @@ -315,17 +283,15 @@ class machine.KeyPad(row,col)
Module Pin
EG810M
    -
  • Row number (output) and corresponding pins are as follows::
    Row number 0– pin86(EG810MEU series not support)
    Row number 1– pin76
    Row number 2– pin85(EG810MEU series not support)
    Row number 3– pin82
    Row number 4– pin74

    +
  • Row number (output) and corresponding pins are as follows::
    Row number 0– pin86(EG810MEU series not support)
    Row number 1– pin76
    Row number 2– pin85(EG810MEU series not support)
    Row number 3– pin82
    Row number 4– pin74

  • -
  • Column number (input) and corresponding pins are as follows:
    Column number 0– pin87(EG810MEU series not support)
    Column number 1– pin77
    Column number 2– pin84(EG810MEU series not support)
    Column number 3– pin83
    Column number 4– pin75

    +
  • Column number (input) and corresponding pins are as follows:
    Column number 0– pin87(EG810MEU series not support)
    Column number 1– pin77
    Column number 2– pin84(EG810MEU series not support)
    Column number 3– pin83
    Column number 4– pin75

- - @@ -336,17 +302,15 @@ class machine.KeyPad(row,col)
Module Pin
EG912N
    -
  • Row number (output) and corresponding pins are as follows::
    Row number 1– pin20
    Row number 2– pin16
    Row number 3– pin116

    +
  • Row number (output) and corresponding pins are as follows::
    Row number 1– pin20
    Row number 2– pin16
    Row number 3– pin116

  • -
  • Column number (input) and corresponding pins are as follows:
    Column number 2– pin105
    Column number 3– pin21
    Column number 4– pin1

    +
  • Column number (input) and corresponding pins are as follows:
    Column number 2– pin105
    Column number 3– pin21
    Column number 4– pin1

- - @@ -357,17 +321,15 @@ class machine.KeyPad(row,col)
Module Pin
EC200U
    -
  • Row number (output) and corresponding pins are as follows::
    Row number 0– pin83
    Row number 1– pin84
    Row number 2– pin113
    Row number 3– pin114
    Row number 4– pin81(EC200UXXAA series not support)
    Row number 5– pin82(EC200UXXAA series not support)

    +
  • Row number (output) and corresponding pins are as follows::
    Row number 0– pin83
    Row number 1– pin84
    Row number 2– pin113
    Row number 3– pin114
    Row number 4– pin81(EC200UXXAA series not support)
    Row number 5– pin82(EC200UXXAA series not support)

  • -
  • Column number (input) and corresponding pins are as follows:
    Column number 0– pin105
    Column number 1– pin78
    Column number 2– pin79
    Column number 3– pin80

    +
  • Column number (input) and corresponding pins are as follows:
    Column number 0– pin105
    Column number 1– pin78
    Column number 2– pin79
    Column number 3– pin80

- - @@ -378,17 +340,15 @@ class machine.KeyPad(row,col)
Module Pin
EC600U
    -
  • Row number (output) and corresponding pins are as follows::
    Row number 0– pin105
    Row number 1– pin106
    Row number 2– pin107
    Row number 3– pin108
    Row number 4– pin104
    Row number 5– pin103

    +
  • Row number (output) and corresponding pins are as follows::
    Row number 0– pin105
    Row number 1– pin106
    Row number 2– pin107
    Row number 3– pin108
    Row number 4– pin104
    Row number 5– pin103

  • -
  • Column number (input) and corresponding pins are as follows:
    Column number 0– pin55
    Column number 1– pin129
    Column number 2– pin128
    Column number 3– pin127
    Column number 4– pin126
    Column number 5– pin125

    +
  • Column number (input) and corresponding pins are as follows:
    Column number 0– pin55
    Column number 1– pin129
    Column number 2– pin128
    Column number 3– pin127
    Column number 4– pin126
    Column number 5– pin125

- - @@ -399,17 +359,15 @@ class machine.KeyPad(row,col)
Module Pin
EG915N
    -
  • Row number (output) and corresponding pins are as follows::
    Row number 0– pin39
    Row number 1– pin20
    Row number 2– pin27
    Row number 3– pin26

    +
  • Row number (output) and corresponding pins are as follows::
    Row number 0– pin39
    Row number 1– pin20
    Row number 2– pin27
    Row number 3– pin26

  • -
  • Column number (input) and corresponding pins are as follows:
    Column number 0– pin83
    Column number 2– pin28
    Column number 3– pin25
    Column number 4– pin1

    +
  • Column number (input) and corresponding pins are as follows:
    Column number 0– pin83
    Column number 2– pin28
    Column number 3– pin25
    Column number 4– pin1

- - @@ -420,17 +378,15 @@ class machine.KeyPad(row,col)
Module Pin
EC600K
    -
  • Row number (output) and corresponding pins are as follows::
    Row number 0– pin53
    Row number 1– pin49
    Row number 2– pin55

    +
  • Row number (output) and corresponding pins are as follows::
    Row number 0– pin53
    Row number 1– pin49
    Row number 2– pin55

  • -
  • Column number (input) and corresponding pins are as follows:
    Column number 0– pin52
    Column number 1– pin54
    Column number 2– pin50

    +
  • Column number (input) and corresponding pins are as follows:
    Column number 0– pin52
    Column number 1– pin54
    Column number 2– pin50

- - @@ -441,17 +397,15 @@ class machine.KeyPad(row,col)
Module Pin
EC800K
    -
  • Row number (output) and corresponding pins are as follows::
    Row number 0– pin74
    Row number 1– pin76
    Row number 2– pin86
    Row number 3– pin82
    Row number 4– pin29

    +
  • Row number (output) and corresponding pins are as follows::
    Row number 0– pin74
    Row number 1– pin76
    Row number 2– pin86
    Row number 3– pin82
    Row number 4– pin29

  • -
  • Column number (input) and corresponding pins are as follows:
    Column number 0– pin75
    Column number 1– pin77
    Column number 2– pin87
    Column number 3– pin81
    Column number 4– pin28

    +
  • Column number (input) and corresponding pins are as follows:
    Column number 0– pin75
    Column number 1– pin77
    Column number 2– pin87
    Column number 3– pin81
    Column number 4– pin28

- - diff --git a/en/peripherals/machine.SPI.md b/en/peripherals/machine.SPI.md index 8b91a66..1ef7d44 100644 --- a/en/peripherals/machine.SPI.md +++ b/en/peripherals/machine.SPI.md @@ -15,9 +15,9 @@ This class provides bus protocol of serial peripheral interface (SPI) .
Module Pin
EG800K
    -
  • Row number (output) and corresponding pins are as follows::
    Row number 0– pin74
    Row number 1– pin76
    Row number 2– pin86
    Row number 3– pin82
    Row number 4– pin29(EG800K series not support)

    +
  • Row number (output) and corresponding pins are as follows::
    Row number 0– pin74
    Row number 1– pin76
    Row number 2– pin86
    Row number 3– pin82
    Row number 4– pin29(EG800K series not support)

  • -
  • Column number (input) and corresponding pins are as follows:
    Column number 0– pin75
    Column number 1– pin77
    Column number 2– pin87
    Column number 3– pin81
    Column number 4– pin28(EG800K series not support)

    +
  • Column number (input) and corresponding pins are as follows:
    Column number 0– pin75
    Column number 1– pin77
    Column number 2– pin87
    Column number 3– pin81
    Column number 4– pin28(EG800K series not support)

- - @@ -40,14 +38,12 @@ class machine.KeyPad(row,col)
平台 最大行 最大列
EC600N 4 4
- - @@ -57,14 +53,12 @@ class machine.KeyPad(row,col)
平台 最大行 最大列
EC800N 4 4
- - @@ -74,14 +68,12 @@ class machine.KeyPad(row,col)
平台 最大行 最大列
EC600S 5 5
- - @@ -91,14 +83,12 @@ class machine.KeyPad(row,col)
平台 最大行 最大列
EC200U 6(EC200UXXAA系列只支持4行,见管脚说明) 4
- - @@ -108,14 +98,12 @@ class machine.KeyPad(row,col)
平台 最大行 最大列
EC600U 6 6
- - @@ -125,14 +113,12 @@ class machine.KeyPad(row,col)
平台 最大行 最大列
EC600M 5 5
- - @@ -142,14 +128,12 @@ class machine.KeyPad(row,col)
平台 最大行 最大列
EC800M 5 5
- - @@ -159,14 +143,12 @@ class machine.KeyPad(row,col)
平台 最大行 最大列
EG810M 5(EG810MEU只支持3行) 5(EG810MEU只支持3行)
- - @@ -176,14 +158,12 @@ class machine.KeyPad(row,col)
平台 最大行 最大列
EEG912N 3 3
- - @@ -193,14 +173,12 @@ class machine.KeyPad(row,col)
平台 最大行 最大列
EG915N 4 4
- - @@ -210,14 +188,12 @@ class machine.KeyPad(row,col)
平台 最大行 最大列
EC600K 3 3
- - @@ -227,14 +203,12 @@ class machine.KeyPad(row,col)
平台 最大行 最大列
EC800K 5 5
- - @@ -251,17 +225,15 @@ class machine.KeyPad(row,col)
平台 最大行 最大列
EG800K 4 4
- - @@ -272,17 +244,15 @@ class machine.KeyPad(row,col)
平台 引脚
EC600M
    -
  • 行号(输出)对应引脚如下:
    行号0– 引脚号49
    行号1– 引脚号51
    行号2– 引脚号53
    行号3– 引脚号55
    行号4– 引脚号56

    +
  • 行号(输出)对应引脚如下:
    行号0– 引脚号49
    行号1– 引脚号51
    行号2– 引脚号53
    行号3– 引脚号55
    行号4– 引脚号56

  • -
  • 列号(输出)对应引脚如下:
    列号0– 引脚号48
    列号1– 引脚号50
    列号2– 引脚号52
    列号3– 引脚号54
    列号4– 引脚号57

    +
  • 列号(输出)对应引脚如下:
    列号0– 引脚号48
    列号1– 引脚号50
    列号2– 引脚号52
    列号3– 引脚号54
    列号4– 引脚号57

- - @@ -293,17 +263,15 @@ class machine.KeyPad(row,col)
平台 引脚
EC800M
    -
  • 行号(输出)对应引脚如下:
    行号0– 引脚号86
    行号1– 引脚号76
    行号2– 引脚号85
    行号3– 引脚号82
    行号4– 引脚号74

    +
  • 行号(输出)对应引脚如下:
    行号0– 引脚号86
    行号1– 引脚号76
    行号2– 引脚号85
    行号3– 引脚号82
    行号4– 引脚号74

  • -
  • 列号(输出)对应引脚如下:
    列号0– 引脚号87
    列号1– 引脚号77
    列号2– 引脚号84
    列号3– 引脚号83
    列号4– 引脚号75

    +
  • 列号(输出)对应引脚如下:
    列号0– 引脚号87
    列号1– 引脚号77
    列号2– 引脚号84
    列号3– 引脚号83
    列号4– 引脚号75

- - @@ -314,17 +282,15 @@ class machine.KeyPad(row,col)
平台 引脚
EG810M
    -
  • 行号(输出)对应引脚如下:
    行号0– 引脚号86(EG810MEU不支持)
    行号1– 引脚号76
    行号2– 引脚号85(EG810MEU不支持)
    行号3– 引脚号82
    行号4– 引脚号74

    +
  • 行号(输出)对应引脚如下:
    行号0– 引脚号86(EG810MEU不支持)
    行号1– 引脚号76
    行号2– 引脚号85(EG810MEU不支持)
    行号3– 引脚号82
    行号4– 引脚号74

  • -
  • 列号(输出)对应引脚如下:
    列号0– 引脚号87(EG810MEU不支持)
    列号1– 引脚号77
    列号2– 引脚号84(EG810MEU不支持)
    列号3– 引脚号83
    列号4– 引脚号75

    +
  • 列号(输出)对应引脚如下:
    列号0– 引脚号87(EG810MEU不支持)
    列号1– 引脚号77
    列号2– 引脚号84(EG810MEU不支持)
    列号3– 引脚号83
    列号4– 引脚号75

- - @@ -335,17 +301,15 @@ class machine.KeyPad(row,col)
平台 引脚
EG912N
    -
  • 行号(输出)对应引脚如下:
    行号1– 引脚号20
    行号2– 引脚号16
    行号3– 引脚号116

    +
  • 行号(输出)对应引脚如下:
    行号1– 引脚号20
    行号2– 引脚号16
    行号3– 引脚号116

  • -
  • 列号(输出)对应引脚如下:
    列号2– 引脚号105
    列号3– 引脚号21
    列号4– 引脚号1

    +
  • 列号(输出)对应引脚如下:
    列号2– 引脚号105
    列号3– 引脚号21
    列号4– 引脚号1

- - @@ -356,17 +320,15 @@ class machine.KeyPad(row,col)
平台 引脚
EC200U
    -
  • 行号(输出)对应引脚如下:
    行号0– 引脚号83
    行号1– 引脚号84
    行号2– 引脚号113
    行号3– 引脚号114
    行号4– 引脚号81(EC200UXXAA系列不支持)
    行号5– 引脚号82(EC200UXXAA系列不支持)

    +
  • 行号(输出)对应引脚如下:
    行号0– 引脚号83
    行号1– 引脚号84
    行号2– 引脚号113
    行号3– 引脚号114
    行号4– 引脚号81(EC200UXXAA系列不支持)
    行号5– 引脚号82(EC200UXXAA系列不支持)

  • -
  • 列号(输出)对应引脚如下:
    列号0– 引脚号105
    列号1– 引脚号78
    列号2– 引脚号79
    列号3– 引脚号80

    +
  • 列号(输出)对应引脚如下:
    列号0– 引脚号105
    列号1– 引脚号78
    列号2– 引脚号79
    列号3– 引脚号80

- - @@ -377,17 +339,15 @@ class machine.KeyPad(row,col)
平台 引脚
EC600U
    -
  • 行号(输出)对应引脚如下:
    行号0– 引脚号105
    行号1– 引脚号106
    行号2– 引脚号107
    行号3– 引脚号108
    行号4– 引脚号104
    行号5– 引脚号103

    +
  • 行号(输出)对应引脚如下:
    行号0– 引脚号105
    行号1– 引脚号106
    行号2– 引脚号107
    行号3– 引脚号108
    行号4– 引脚号104
    行号5– 引脚号103

  • -
  • 列号(输出)对应引脚如下:
    列号0– 引脚号55
    列号1– 引脚号129
    列号2– 引脚号128
    列号3– 引脚号127
    列号4– 引脚号126
    列号5– 引脚号125

    +
  • 列号(输出)对应引脚如下:
    列号0– 引脚号55
    列号1– 引脚号129
    列号2– 引脚号128
    列号3– 引脚号127
    列号4– 引脚号126
    列号5– 引脚号125

- - @@ -398,17 +358,15 @@ class machine.KeyPad(row,col)
平台 引脚
EG915N
    -
  • 行号(输出)对应引脚如下:
    行号0– 引脚号39
    行号1– 引脚号20
    行号2– 引脚号27
    行号3– 引脚号26

    +
  • 行号(输出)对应引脚如下:
    行号0– 引脚号39
    行号1– 引脚号20
    行号2– 引脚号27
    行号3– 引脚号26

  • -
  • 列号(输出)对应引脚如下:
    列号0– 引脚号83
    列号2– 引脚号28
    列号3– 引脚号25
    列号4– 引脚号1

    +
  • 列号(输出)对应引脚如下:
    列号0– 引脚号83
    列号2– 引脚号28
    列号3– 引脚号25
    列号4– 引脚号1

- - @@ -419,17 +377,15 @@ class machine.KeyPad(row,col)
平台 引脚
EC600K
    -
  • 行号(输出)对应引脚如下:
    行号0– 引脚号53
    行号1– 引脚号49
    行号2– 引脚号55

    +
  • 行号(输出)对应引脚如下:
    行号0– 引脚号53
    行号1– 引脚号49
    行号2– 引脚号55

  • -
  • 列号(输出)对应引脚如下:
    列号0– 引脚号52
    列号1– 引脚号54
    列号2– 引脚号50

    +
  • 列号(输出)对应引脚如下:
    列号0– 引脚号52
    列号1– 引脚号54
    列号2– 引脚号50

- - @@ -440,17 +396,15 @@ class machine.KeyPad(row,col)
平台 引脚
EC800K
    -
  • 行号(输出)对应引脚如下:
    行号0– 引脚号74
    行号1– 引脚号76
    行号2– 引脚号86
    行号3– 引脚号82
    行号4– 引脚号29

    +
  • 行号(输出)对应引脚如下:
    行号0– 引脚号74
    行号1– 引脚号76
    行号2– 引脚号86
    行号3– 引脚号82
    行号4– 引脚号29

  • -
  • 列号(输出)对应引脚如下:
    列号0– 引脚号75
    列号1– 引脚号77
    列号2– 引脚号87
    列号3– 引脚号81
    列号4– 引脚号28

    +
  • 列号(输出)对应引脚如下:
    列号0– 引脚号75
    列号1– 引脚号77
    列号2– 引脚号87
    列号3– 引脚号81
    列号4– 引脚号28

- - diff --git a/zh/peripherals/machine.SPI.md b/zh/peripherals/machine.SPI.md index 17bf2b4..549a82e 100644 --- a/zh/peripherals/machine.SPI.md +++ b/zh/peripherals/machine.SPI.md @@ -15,9 +15,9 @@
平台 引脚
EG800K
    -
  • 行号(输出)对应引脚如下:
    行号0– 引脚号74
    行号1– 引脚号76
    行号2– 引脚号86
    行号3– 引脚号82
    行号4– 引脚号29(EG800K不支持)

    +
  • 行号(输出)对应引脚如下:
    行号0– 引脚号74
    行号1– 引脚号76
    行号2– 引脚号86
    行号3– 引脚号82
    行号4– 引脚号29(EG800K不支持)

  • -
  • 列号(输出)对应引脚如下:
    列号0– 引脚号75
    列号1– 引脚号77
    列号2– 引脚号87
    列号3– 引脚号81
    列号4– 引脚号28(EG800K不支持)

    +
  • 列号(输出)对应引脚如下:
    列号0– 引脚号75
    列号1– 引脚号77
    列号2– 引脚号87
    列号3– 引脚号81
    列号4– 引脚号28(EG800K不支持)

- + @@ -129,14 +128,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -148,7 +147,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin4 pin1 pin3 pin2
SPI1port1 pin58 pin61 pin59
- + @@ -157,14 +156,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -176,7 +175,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin134 pin133 pin132 pin131
SPI1port1 pin26 pin27 pin24
- + @@ -185,14 +184,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -204,7 +203,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin58 pin61 pin59 pin60
SPI1port1 pin4 pin1 pin3
- + @@ -213,14 +212,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -232,7 +231,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin58 pin61 pin59 pin60
SPI1port1 pin4 pin1 pin3
- + @@ -241,14 +240,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -260,7 +259,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin25 pin26 pin27 pin28
SPI1port1 pin105 pin104 pin107
- + @@ -269,14 +268,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -288,7 +287,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin31 pin30 pin32 pin33
SPI1port1 pin52 pin53 pin50
- + @@ -297,7 +296,7 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + @@ -309,7 +308,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin6 pin5 pin4
- + @@ -318,21 +317,21 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + - + @@ -344,7 +343,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin25 pin26 pin27 pin28
SPI1port1 pin41 pin40 pin64 pin65
SPI2port2 pin19 pin18 pin23
- + @@ -354,39 +353,39 @@ This class provides bus protocol of serial peripheral interface (SPI) . - - + + - - + + - - + + - - + + - + @@ -399,7 +398,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT Group CS CLK
SPI0Group0port0group0 pin25 pin26 pin27 pin28
SPI0Group1port0group1 pin4 pin1 pin3 pin2
SPI1Group0port1group0 pin4 pin1 pin3 pin2
SPI1Group1port1group1 pin65 pin67 pin66 pin63
SPI2port2 NULL pin49 pin54
- + @@ -408,14 +407,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -427,7 +426,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin25 pin26 pin64 pin88
SPI1port1 pin5 pin4 pin6
- + @@ -437,39 +436,39 @@ This class provides bus protocol of serial peripheral interface (SPI) . - - + + - - + + - - + + - - + + - + @@ -482,7 +481,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT Group CS CLK
SPI0Group0port0group0 pin31 pin30 pin32 pin33
SPI0Group1port0group1 pin52 pin53 pin50 pin51
SPI1Group0port1group0 pin52 pin53 pin50 pin51
SPI1Group1port1group1 pin69 pin68 pin85 pin84
SPI2port2 NULL pin76 pin77
- + @@ -492,39 +491,39 @@ This class provides bus protocol of serial peripheral interface (SPI) . - - + + - - + + - - + + - - + + - + @@ -537,7 +536,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT Group CS CLK
SPI0Group0port0group0 pin31 pin30 pin32 pin33
SPI0Group1port0group1 pin52 pin53 pin50 pin51
SPI1Group0port1group0 pin52 pin53 pin50 pin51
SPI1Group1(EG810M_EU unsupported)port1group1(EG810M_EU unsupported) pin69 pin68 pin85 pin84
SPI2port2 NULL pin76 pin77
- + @@ -546,14 +545,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -565,7 +564,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin25 pin26 pin27 pin28
SPI1port1 pin5 pin4 pin6
- + @@ -574,14 +573,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -593,7 +592,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin37 pin40 pin38 pin39
SPI1port1 pin26 pin27 pin25
- + @@ -602,14 +601,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -621,7 +620,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin37 pin40 pin38 pin39
SPI1port1 pin26 pin27 pin25
- + @@ -630,14 +629,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -649,7 +648,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0(EC600ECN_LE&LQ unsupported)port0(EC600ECN_LE&LQ unsupported) pin65 pin67 pin66 pin64
SPI1port1 pin69 pin71 pin70
- + @@ -658,14 +657,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -677,7 +676,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin28 pin39 pin29 pin38
SPI1(EC800ECN_LE&LQ&CG unsupported)port1(EC800ECN_LE&LQ&CG unsupported) pin52 pin53 pin50
- + @@ -686,14 +685,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -705,7 +704,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin4 pin1 pin3 pin2
SPI1(EC800ECN_LE&LQ&CG unsupported)port1(EC800ECN_LE&LQ&CG unsupported) pin53 pin52 pin54
- + @@ -714,7 +713,7 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + @@ -726,7 +725,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI1port1 pin79 pin101 pin100
- + @@ -735,14 +734,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -754,7 +753,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0(EG912UGLAA unsupported)port0(EG912UGLAA unsupported) pin25 pin26 pin64 pin88
SPI1port1 pin5 pin4 pin6
- + @@ -763,14 +762,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -782,7 +781,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI1port1 pin4 pin1 pin3 pin2
SPI2port2 pin58 pin61 pin59
- + @@ -791,21 +790,21 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + - + @@ -817,7 +816,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin31 pin30 pin32 pin33
SPI1port1 pin52 pin53 pin50 pin51
SPI2port2 pin74 pin75 pin76
- + @@ -826,21 +825,21 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + - + @@ -852,7 +851,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin31 pin30 pin32 pin33
SPI1port1 pin52 pin53 pin50 pin51
SPI2port2 pin74 pin75 pin76
- + @@ -861,7 +860,7 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + @@ -873,7 +872,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin21 pin22 pin29
- + @@ -882,7 +881,7 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + @@ -894,7 +893,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin29 pin30 pin37
- + @@ -903,7 +902,7 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + @@ -915,7 +914,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin41 pin42 pin43
- + @@ -924,7 +923,7 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + @@ -936,7 +935,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPIPORT CS CLK MOSI
SPI0port0 pin41 pin42 pin43
- + @@ -945,7 +944,7 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + @@ -957,7 +956,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
SPI PORT CS CLK MOSI
SPI0port0 pin5 pin4 pin6
- + @@ -966,14 +965,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + diff --git a/zh/peripherals/machine.SPI.md b/zh/peripherals/machine.SPI.md index 549a82e..33e4092 100644 --- a/zh/peripherals/machine.SPI.md +++ b/zh/peripherals/machine.SPI.md @@ -8,7 +8,7 @@
-
+
class machine.I2C(I2Cn, MODE)
 

参数描述:

@@ -19,7 +19,22 @@
  • clk - 时钟频率,说明如下:
    0812.5kHz
    11.625MHz
    23.25MHz
    36.5MHz
    413MHz
    526MHz
    652MHz

  • -
  • [group] - 选择在不同管脚使用spi,缺省值为0。

    +

    52MHz时钟频率对硬件要求较高。

    + +
  • + +
    +
    class machine.I2C(I2Cn, MODE)
    +
    +

    参数描述:

    +
      +
    • port - 通道选择[0,1],int类型。

      +
    • +
    • mode - I2C 的工作模式,int类型,说明如下:
      时钟极性CPOL:即SPI空闲时,时钟信号SCLK的电平(0:空闲时低电平; 1:空闲时高电平)
      0CPOL=0, CPHA=0
      1CPOL=0, CPHA=1
      2CPOL=1, CPHA=0
      3CPOL=1, CPHA=1

      +
    • +
    • clk - 时钟频率,说明如下:
      0812.5kHz
      11.625MHz
      23.25MHz
      36.5MHz
      413MHz

      +
    • +
    • [group] - 选择在不同管脚使用spi,缺省值为0。
      1该组管脚不支持挂载 nor flash

    @@ -35,7 +50,7 @@
  • clk - 时钟频率,说明如下:
    0812.5kHz
    11.625MHz
    23.25MHz
    36.5MHz
    413MHz

  • -
  • [group] - 选择在不同管脚使用spi,缺省值为0。

    +
  • [group] - 选择在不同管脚使用spi,缺省值为0。
    0缺省值
    1不支持挂载 nor flash

  • @@ -51,8 +66,6 @@
  • clk - 时钟频率,说明如下:
    0781.25KHz
    11.5625MHz
    23.125MHz
    35MHz
    46.25MHz
    510MHz
    612.5MHz
    720MHz
    825MHz
    933.33MHz

  • -
  • [group] - 选择在不同管脚使用spi,缺省值为0。

    -
  • @@ -63,12 +76,10 @@ @@ -83,8 +94,6 @@
  • clk - 时钟频率,说明如下:
    097.656kHz
    1100kHz
    2812.5kHz
    31.3MHz
    41.625MHz
    52MHz
    63.25MHz
    74.333MHz
    86.6MHz
    911.93MHz
    1013MHz
    1113.92MHz
    1216.7MHz
    1320.875MHz
    1427.83MHz

  • -
  • [group] - 选择在不同管脚使用spi,缺省值为0。

    -
  • @@ -99,17 +108,11 @@
  • clk - 时钟频率,说明如下:
    0500kHz
    11MHz
    25MHz
    310MHz
    420MHz

  • -
  • [group] - 选择在不同管脚使用spi,缺省值为0。

    -
  • -> BC25PA平台不支持1、2模式。 -> -> group参数目前仅EC600M/EC800M/EG810M系列支持,group = 1 不支持挂载 nor flash - > 52MHz时钟频率对硬件要求较高。 **示例:** @@ -121,16 +124,13 @@ ``` - - - **SPI引脚对应关系:**
    SPIPORT CS CLK MOSI
    SPI0port0 pin49 pin29 pin101 pin28
    SPI1port1 pin52 pin53 pin50
    - + @@ -139,14 +139,14 @@ - + - + @@ -158,7 +158,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚4 引脚1 引脚3 引脚2
    SPI1port1 引脚58 引脚61 引脚59
    - + @@ -167,14 +167,14 @@ - + - + @@ -186,7 +186,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚134 引脚133 引脚132 引脚131
    SPI1port1 引脚26 引脚27 引脚24
    - + @@ -195,14 +195,14 @@ - + - + @@ -214,7 +214,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚58 引脚61 引脚59 引脚60
    SPI1port1 引脚4 引脚1 引脚3
    - + @@ -223,14 +223,14 @@ - + - + @@ -242,7 +242,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚58 引脚61 引脚59 引脚60
    SPI1port1 引脚4 引脚1 引脚3
    - + @@ -251,14 +251,14 @@ - + - + @@ -270,7 +270,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚25 引脚26 引脚27 引脚28
    SPI1port1 引脚105 引脚104 引脚107
    - + @@ -279,14 +279,14 @@ - + - + @@ -298,7 +298,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚31 引脚30 引脚32 引脚33
    SPI1port1 引脚52 引脚53 引脚50
    - + @@ -307,7 +307,7 @@ - + @@ -319,7 +319,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚6 引脚5 引脚4
    - + @@ -328,14 +328,14 @@ - + - + @@ -354,7 +354,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚25 引脚26 引脚27 引脚28
    SPI1port1 引脚41 引脚40 引脚64
    - + @@ -364,32 +364,32 @@ - - + + - - + + - - + + - - + + @@ -409,7 +409,7 @@
    SPI编号port通道 Group CS引脚 CLK引脚
    SPI0Group0port0group0 引脚25 引脚26 引脚27 引脚28
    SPI0Group1port0group1 引脚4 引脚1 引脚3 引脚2
    SPI1Group0port1group0 引脚4 引脚1 引脚3 引脚2
    SPI1Group1port1group1 引脚65 引脚67 引脚66
    - + @@ -418,14 +418,14 @@ - + - + @@ -437,7 +437,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚25 引脚26 引脚64 引脚88
    SPI1port1 引脚5 引脚4 引脚6
    - + @@ -447,32 +447,32 @@ - - + + - - + + - - + + - - + + @@ -492,7 +492,7 @@
    SPI编号port通道 Group CS引脚 CLK引脚
    SPI0Group0port0group0 引脚31 引脚30 引脚32 引脚33
    SPI0Group1port0group1 引脚52 引脚53 引脚50 引脚51
    SPI1Group0port1group0 引脚52 引脚53 引脚50 引脚51
    SPI1Group1port1group1 引脚69 引脚68 引脚85
    - + @@ -502,32 +502,32 @@ - - + + - - + + - - + + - - + + @@ -547,7 +547,7 @@
    SPI编号port通道 Group CS引脚 CLK引脚
    SPI0Group0port0group0 引脚31 引脚30 引脚32 引脚33
    SPI0Group1port0group1 引脚52 引脚53 引脚50 引脚51
    SPI1Group0port1group0 引脚52 引脚53 引脚50 引脚51
    SPI1Group1(EG810M_EU不支持)port1group1(EG810M_EU不支持) 引脚69 引脚68 引脚85
    - + @@ -556,14 +556,14 @@ - + - + @@ -575,7 +575,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚25 引脚26 引脚27 引脚28
    SPI1port1 引脚5 引脚4 引脚6
    - + @@ -584,14 +584,14 @@ - + - + @@ -603,7 +603,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚37 引脚40 引脚38 引脚39
    SPI1port1 引脚26 引脚27 引脚25
    - + @@ -612,14 +612,14 @@ - + - + @@ -631,7 +631,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚37 引脚40 引脚38 引脚39
    SPI1port1 引脚26 引脚27 引脚25
    - + @@ -640,14 +640,14 @@ - + - + @@ -659,7 +659,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0(EC600ECN_LE&LQ不可用)port0(EC600ECN_LE&LQ不可用) 引脚65 引脚67 引脚66 引脚64
    SPI1port1 引脚69 引脚71 引脚70
    - + @@ -668,14 +668,14 @@ - + - + @@ -687,7 +687,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚28 引脚39 引脚29 引脚38
    SPI1(EC800ECN_LE&LQ&CG不可用)port1(EC800ECN_LE&LQ&CG不可用) 引脚52 引脚53 引脚50
    - + @@ -696,14 +696,14 @@ - + - + @@ -715,7 +715,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚4 引脚1 引脚3 引脚2
    SPI1(EC800ECN_LE&LQ&CG不可用)port1(EC800ECN_LE&LQ&CG不可用) 引脚53 引脚52 引脚54
    - + @@ -724,7 +724,7 @@ - + @@ -736,7 +736,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI1port1 引脚79 引脚101 引脚100
    - + @@ -745,14 +745,14 @@ - + - + @@ -764,7 +764,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0(EG912UGLAA不可用)port0(EG912UGLAA不可用) 引脚25 引脚26 引脚64 引脚88
    SPI1port1 引脚5 引脚4 引脚6
    - + @@ -773,7 +773,7 @@ - + @@ -792,7 +792,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI1port1 引脚4 引脚1 引脚3
    - + @@ -801,14 +801,14 @@ - + - + @@ -827,7 +827,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚31 引脚30 引脚32 引脚33
    SPI1port1 引脚52 引脚53 引脚50
    - + @@ -836,14 +836,14 @@ - + - + @@ -862,7 +862,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚31 引脚30 引脚32 引脚33
    SPI1port1 引脚52 引脚53 引脚50
    - + @@ -871,7 +871,7 @@ - + @@ -883,7 +883,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚21 引脚22 引脚29
    - + @@ -892,7 +892,7 @@ - + @@ -904,7 +904,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚29 引脚30 引脚37
    - + @@ -913,7 +913,7 @@ - + @@ -925,7 +925,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚41 引脚42 引脚43
    - + @@ -934,7 +934,7 @@ - + @@ -946,7 +946,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚41 引脚42 引脚43
    - + @@ -955,7 +955,7 @@ - + @@ -967,7 +967,7 @@
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚5 引脚4 引脚6
    - + @@ -976,14 +976,14 @@ - + - + -- Gitee
    SPI编号port通道 CS引脚 CLK引脚 MOSI引脚
    SPI0port0 引脚49 引脚29 引脚101 引脚28
    SPI1port1 引脚52 引脚53 引脚50