From 2ee060e8df6de87926879cddc10b8b8a13607ee3 Mon Sep 17 00:00:00 2001 From: "rex.zhou" Date: Tue, 18 Mar 2025 20:13:11 +0800 Subject: [PATCH 1/3] =?UTF-8?q?SPI=E8=A1=A8=E6=A0=BC=E5=88=97=E6=95=B0?= =?UTF-8?q?=E8=B0=83=E6=95=B4/BC25=E3=80=8132=E3=80=8192=E6=AD=A3=E6=96=87?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E8=A1=A5=E5=85=85/600S=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E5=86=97=E4=BD=99=E5=88=A0=E5=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/peripherals/machine.SPI.md | 218 +++++++++++++++---------------- zh/peripherals/machine.SPI.md | 235 ++++++++++++++++------------------ 2 files changed, 208 insertions(+), 245 deletions(-) diff --git a/en/peripherals/machine.SPI.md b/en/peripherals/machine.SPI.md index b88071a..b2cc77f 100644 --- a/en/peripherals/machine.SPI.md +++ b/en/peripherals/machine.SPI.md @@ -9,7 +9,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
-
class machine.I2C(I2Cn, MODE)
+
class machine.SPI(spi, mode, clk, [group])
 

Parameter:

    @@ -24,7 +24,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
-
class machine.I2C(I2Cn, MODE)
+
class machine.SPI(spi, mode, clk, [group])
 

Parameter:

    @@ -39,7 +39,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
-
class machine.I2C(I2Cn, MODE)
+
class machine.SPI(spi, mode, clk, [group])
 

Parameter:

    @@ -52,7 +52,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
-
class machine.I2C(I2Cn, MODE)
+
class machine.SPI(spi, mode, clk, [group])
 

Parameter:

    @@ -65,8 +65,8 @@ This class provides bus protocol of serial peripheral interface (SPI) .
-
-
class machine.I2C(I2Cn, MODE)
+
+
class machine.SPI(spi, mode, clk, [group])
 

Parameter:

    @@ -79,7 +79,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
-
class machine.I2C(I2Cn, MODE)
+
class machine.SPI(spi, mode, clk, [group])
 

Parameter:

    @@ -90,7 +90,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
-
class machine.I2C(I2Cn, MODE)
+
class machine.SPI(spi, mode, clk, [group])
 

Parameter:

    @@ -119,7 +119,7 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + @@ -128,14 +128,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -147,7 +147,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin4 pin1 pin3 pin2
    port1spi1 pin58 pin61 pin59
    - + @@ -156,14 +156,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -175,7 +175,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin134 pin133 pin132 pin131
    port1spi1 pin26 pin27 pin24
    - + @@ -184,14 +184,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -203,7 +203,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin58 pin61 pin59 pin60
    port1spi1 pin4 pin1 pin3
    - + @@ -212,14 +212,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -231,7 +231,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin58 pin61 pin59 pin60
    port1spi1 pin4 pin1 pin3
    - + @@ -240,14 +240,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -259,7 +259,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin25 pin26 pin27 pin28
    port1spi1 pin105 pin104 pin107
    - + @@ -268,14 +268,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -287,7 +287,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin31 pin30 pin32 pin33
    port1spi1 pin52 pin53 pin50
    - + @@ -296,7 +296,7 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + @@ -308,7 +308,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin6 pin5 pin4
    - + @@ -317,21 +317,21 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + - + @@ -343,8 +343,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin25 pin26 pin27 pin28
    port1spi1 pin41 pin40 pin64 pin65
    port2spi2 pin19 pin18 pin23
    - - + @@ -353,40 +352,35 @@ This class provides bus protocol of serial peripheral interface (SPI) . - - + - - + - - + - - + - - + @@ -398,7 +392,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTGroupSPI CS CLK MOSI
    port0group0spi0
    group0
    pin25 pin26 pin27 pin28
    port0group1spi0
    group1
    pin4 pin1 pin3 pin2
    port1group0spi1
    group0
    pin4 pin1 pin3 pin2
    port1group1spi1
    group1
    pin65 pin67 pin66 pin63
    port2NULLspi2 pin49 pin54 pin53
    - + @@ -407,14 +401,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -426,8 +420,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin25 pin26 pin64 pin88
    port1spi1 pin5 pin4 pin6
    - - + @@ -436,40 +429,35 @@ This class provides bus protocol of serial peripheral interface (SPI) . - - + - - + - - + - - + - - + @@ -481,8 +469,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTGroupSPI CS CLK MOSI
    port0group0spi0
    group0
    pin31 pin30 pin32 pin33
    port0group1spi0
    group1
    pin52 pin53 pin50 pin51
    port1group0spi1
    group0
    pin52 pin53 pin50 pin51
    port1group1spi1
    group1
    pin69 pin68 pin85 pin84
    port2NULLspi2 pin76 pin77 pin78
    - - + @@ -491,40 +478,35 @@ This class provides bus protocol of serial peripheral interface (SPI) . - - + - - + - - + - - + - - + @@ -536,7 +518,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTGroupSPI CS CLK MOSI
    port0group0spi0
    group0
    pin31 pin30 pin32 pin33
    port0group1spi0
    group1
    pin52 pin53 pin50 pin51
    port1group0spi1
    group0
    pin52 pin53 pin50 pin51
    port1group1(EG810M_EU unsupported)spi1
    group1(EG810M_EU unsupported)
    pin69 pin68 pin85 pin84
    port2NULLspi2 pin76 pin77 pin78
    - + @@ -545,14 +527,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -564,7 +546,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin25 pin26 pin27 pin28
    port1spi1 pin5 pin4 pin6
    - + @@ -573,14 +555,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -592,7 +574,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin37 pin40 pin38 pin39
    port1spi1 pin26 pin27 pin25
    - + @@ -601,14 +583,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -620,7 +602,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin37 pin40 pin38 pin39
    port1spi1 pin26 pin27 pin25
    - + @@ -629,14 +611,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -648,7 +630,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0(EC600ECN_LE&LQ unsupported)spi0(EC600ECN_LE&LQ unsupported) pin65 pin67 pin66 pin64
    port1spi1 pin69 pin71 pin70
    - + @@ -657,14 +639,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -676,7 +658,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin28 pin39 pin29 pin38
    port1(EC800ECN_LE&LQ&CG unsupported)spi1(EC800ECN_LE&LQ&CG unsupported) pin52 pin53 pin50
    - + @@ -685,14 +667,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -704,7 +686,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin4 pin1 pin3 pin2
    port1(EC800ECN_LE&LQ&CG unsupported)spi1(EC800ECN_LE&LQ&CG unsupported) pin53 pin52 pin54
    - + @@ -713,7 +695,7 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + @@ -725,7 +707,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port1spi1 pin79 pin101 pin100
    - + @@ -734,14 +716,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -753,7 +735,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0(EG912UGLAA unsupported)spi0(EG912UGLAA unsupported) pin25 pin26 pin64 pin88
    port1spi1 pin5 pin4 pin6
    - + @@ -762,14 +744,14 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + @@ -781,7 +763,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port1spi1 pin4 pin1 pin3 pin2
    port2spi2 pin58 pin61 pin59
    - + @@ -790,21 +772,21 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + - + @@ -816,7 +798,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin31 pin30 pin32 pin33
    port1spi1 pin52 pin53 pin50 pin51
    port2spi2 pin74 pin75 pin76
    - + @@ -825,21 +807,21 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + - + - + @@ -851,7 +833,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin31 pin30 pin32 pin33
    port1spi1 pin52 pin53 pin50 pin51
    port2spi2 pin74 pin75 pin76
    - + @@ -860,7 +842,7 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + @@ -872,7 +854,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin21 pin22 pin29
    - + @@ -881,7 +863,7 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + @@ -893,7 +875,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin29 pin30 pin37
    - + @@ -902,7 +884,7 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + @@ -914,7 +896,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin41 pin42 pin43
    - + @@ -923,7 +905,7 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + @@ -935,7 +917,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORTSPI CS CLK MOSI
    port0spi0 pin41 pin42 pin43
    - + @@ -944,7 +926,7 @@ This class provides bus protocol of serial peripheral interface (SPI) . - + @@ -956,7 +938,7 @@ This class provides bus protocol of serial peripheral interface (SPI) .
    PORT SPI CS CLK MOSI
    port0spi0 pin5 pin4 pin6
    - + @@ -965,14 +947,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 33e4092..ccc4c75 100644 --- a/zh/peripherals/machine.SPI.md +++ b/zh/peripherals/machine.SPI.md @@ -9,11 +9,11 @@
    -
    class machine.I2C(I2Cn, MODE)
    +
    class machine.SPI(spi, mode, clk, [group])
     

    参数描述:

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

      +
    • spi - 通道选择[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

    • @@ -24,11 +24,11 @@
    -
    class machine.I2C(I2Cn, MODE)
    +
    class machine.SPI(spi, mode, clk, [group])
     

    参数描述:

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

      +
    • spi - 通道选择[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

    • @@ -40,11 +40,11 @@
    -
    class machine.I2C(I2Cn, MODE)
    +
    class machine.SPI(spi, mode, clk, [group])
     

    参数描述:

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

      +
    • spi - 通道选择[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

    • @@ -56,11 +56,11 @@
    -
    class machine.I2C(I2Cn, MODE)
    +
    class machine.SPI(spi, mode, clk, [group])
     

    参数描述:

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

      +
    • spi - 通道选择[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

    • @@ -69,12 +69,12 @@
    -
    -
    class machine.I2C(I2Cn, MODE)
    +
    +
    class machine.SPI(spi, mode, clk, [group])
     

    参数描述:

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

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

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

    • @@ -84,11 +84,11 @@
    -
    class machine.I2C(I2Cn, MODE)
    +
    class machine.SPI(spi, mode, clk, [group])
     

    参数描述:

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

      +
    • spi - 通道选择[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

    • @@ -98,11 +98,11 @@
    -
    class machine.I2C(I2Cn, MODE)
    +
    class machine.SPI(spi, mode, clk, [group])
     

    参数描述:

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

      +
    • spi - 通道选择[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

    • @@ -113,12 +113,11 @@
    -> 52MHz时钟频率对硬件要求较高。 **示例:** ```python ->>> from machine import SPI +>>> from machine imspi SPI >>> # 创建SPI对象 >>> spi_obj = SPI(1, 0, 1) ``` @@ -130,7 +129,7 @@
    PORTSPI CS CLK MOSI
    port0spi0 pin49 pin29 pin101 pin28
    port1spi1 pin52 pin53 pin50
    - + @@ -139,14 +138,14 @@ - + - + @@ -158,7 +157,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚4 引脚1 引脚3 引脚2
    port1spi1 引脚58 引脚61 引脚59
    - + @@ -167,14 +166,14 @@ - + - + @@ -186,7 +185,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚134 引脚133 引脚132 引脚131
    port1spi1 引脚26 引脚27 引脚24
    - + @@ -195,14 +194,14 @@ - + - + @@ -214,7 +213,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚58 引脚61 引脚59 引脚60
    port1spi1 引脚4 引脚1 引脚3
    - + @@ -223,14 +222,14 @@ - + - + @@ -242,7 +241,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚58 引脚61 引脚59 引脚60
    port1spi1 引脚4 引脚1 引脚3
    - + @@ -251,14 +250,14 @@ - + - + @@ -270,7 +269,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚25 引脚26 引脚27 引脚28
    port1spi1 引脚105 引脚104 引脚107
    - + @@ -279,14 +278,14 @@ - + - + @@ -298,7 +297,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚31 引脚30 引脚32 引脚33
    port1spi1 引脚52 引脚53 引脚50
    - + @@ -307,7 +306,7 @@ - + @@ -319,7 +318,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚6 引脚5 引脚4
    - + @@ -328,21 +327,21 @@ - + - + - + @@ -354,8 +353,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚25 引脚26 引脚27 引脚28
    port1spi1 引脚41 引脚40 引脚64 引脚65
    SPI2spi2 引脚19 引脚18 引脚23
    - - + @@ -364,40 +362,35 @@ - - + - - + - - + - - + - - + @@ -409,7 +402,7 @@
    port通道GroupSPI通道 CS引脚 CLK引脚 MOSI引脚
    port0group0spi0
    group0
    引脚25 引脚26 引脚27 引脚28
    port0group1spi0
    group1
    引脚4 引脚1 引脚3 引脚2
    port1group0spi1
    group0
    引脚4 引脚1 引脚3 引脚2
    port1group1spi1
    group1
    引脚65 引脚67 引脚66 引脚63
    SPI2NULLspi2 引脚49 引脚54 引脚53
    - + @@ -418,14 +411,14 @@ - + - + @@ -437,8 +430,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚25 引脚26 引脚64 引脚88
    port1spi1 引脚5 引脚4 引脚6
    - - + @@ -447,40 +439,35 @@ - - + - - + - - + - - + - - + @@ -492,8 +479,7 @@
    port通道GroupSPI通道 CS引脚 CLK引脚 MOSI引脚
    port0group0spi0
    group0
    引脚31 引脚30 引脚32 引脚33
    port0group1spi0
    group1
    引脚52 引脚53 引脚50 引脚51
    port1group0spi1
    group0
    引脚52 引脚53 引脚50 引脚51
    port1group1spi1
    group1
    引脚69 引脚68 引脚85 引脚84
    SPI2NULLspi2 引脚76 引脚77 引脚78
    - - + @@ -502,40 +488,35 @@ - - + - - + - - + - - + - - + @@ -547,7 +528,7 @@
    port通道GroupSPI通道 CS引脚 CLK引脚 MOSI引脚
    port0group0spi0
    group0
    引脚31 引脚30 引脚32 引脚33
    port0group1spi0
    group1
    引脚52 引脚53 引脚50 引脚51
    port1group0spi1
    group0
    引脚52 引脚53 引脚50 引脚51
    port1group1(EG810M_EU不支持)spi1
    group1(EG810M_EU不支持)
    引脚69 引脚68 引脚85 引脚84
    SPI2NULLspi2 引脚76 引脚77 引脚78
    - + @@ -556,14 +537,14 @@ - + - + @@ -575,7 +556,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚25 引脚26 引脚27 引脚28
    port1spi1 引脚5 引脚4 引脚6
    - + @@ -584,14 +565,14 @@ - + - + @@ -603,7 +584,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚37 引脚40 引脚38 引脚39
    port1spi1 引脚26 引脚27 引脚25
    - + @@ -612,14 +593,14 @@ - + - + @@ -631,7 +612,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚37 引脚40 引脚38 引脚39
    port1spi1 引脚26 引脚27 引脚25
    - + @@ -640,14 +621,14 @@ - + - + @@ -659,7 +640,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0(EC600ECN_LE&LQ不可用)spi0(EC600ECN_LE&LQ不可用) 引脚65 引脚67 引脚66 引脚64
    port1spi1 引脚69 引脚71 引脚70
    - + @@ -668,14 +649,14 @@ - + - + @@ -687,7 +668,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚28 引脚39 引脚29 引脚38
    port1(EC800ECN_LE&LQ&CG不可用)spi1(EC800ECN_LE&LQ&CG不可用) 引脚52 引脚53 引脚50
    - + @@ -696,14 +677,14 @@ - + - + @@ -715,7 +696,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚4 引脚1 引脚3 引脚2
    port1(EC800ECN_LE&LQ&CG不可用)spi1(EC800ECN_LE&LQ&CG不可用) 引脚53 引脚52 引脚54
    - + @@ -724,7 +705,7 @@ - + @@ -736,7 +717,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port1spi1 引脚79 引脚101 引脚100
    - + @@ -745,14 +726,14 @@ - + - + @@ -764,7 +745,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0(EG912UGLAA不可用)spi0(EG912UGLAA不可用) 引脚25 引脚26 引脚64 引脚88
    port1spi1 引脚5 引脚4 引脚6
    - + @@ -773,14 +754,14 @@ - + - + @@ -792,7 +773,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port1spi1 引脚4 引脚1 引脚3 引脚2
    SPI2spi2 引脚58 引脚61 引脚59
    - + @@ -801,21 +782,21 @@ - + - + - + @@ -827,7 +808,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚31 引脚30 引脚32 引脚33
    port1spi1 引脚52 引脚53 引脚50 引脚51
    SPI2spi2 引脚74 引脚75 引脚76
    - + @@ -836,21 +817,21 @@ - + - + - + @@ -862,7 +843,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚31 引脚30 引脚32 引脚33
    port1spi1 引脚52 引脚53 引脚50 引脚51
    SPI2spi2 引脚74 引脚75 引脚76
    - + @@ -871,7 +852,7 @@ - + @@ -883,7 +864,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚21 引脚22 引脚29
    - + @@ -892,7 +873,7 @@ - + @@ -904,7 +885,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚29 引脚30 引脚37
    - + @@ -913,7 +894,7 @@ - + @@ -925,7 +906,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚41 引脚42 引脚43
    - + @@ -934,7 +915,7 @@ - + @@ -946,7 +927,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚41 引脚42 引脚43
    - + @@ -955,7 +936,7 @@ - + @@ -967,7 +948,7 @@
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚5 引脚4 引脚6
    - + @@ -976,14 +957,14 @@ - + - + -- Gitee From d0e79ee340d3b387a41ad6f6450ae44a922b7f38 Mon Sep 17 00:00:00 2001 From: "rex.zhou" Date: Tue, 18 Mar 2025 20:20:53 +0800 Subject: [PATCH 2/3] =?UTF-8?q?IIC=20EG800K=20=E5=B8=B8=E9=87=8F=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/peripherals/machine.I2C.md | 31 +++++++++++++++++++++++++++++++ zh/peripherals/machine.I2C.md | 31 +++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/en/peripherals/machine.I2C.md b/en/peripherals/machine.I2C.md index 1a1d4a2..b12c92d 100644 --- a/en/peripherals/machine.I2C.md +++ b/en/peripherals/machine.I2C.md @@ -1086,6 +1086,37 @@ if __name__ == '__main__':
    port通道SPI通道 CS引脚 CLK引脚 MOSI引脚
    port0spi0 引脚49 引脚29 引脚101 引脚28
    port1spi1 引脚52 引脚53 引脚50
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    ConstantDescription
    I2C.I2C0I2C passage index number: 0
    I2C.I2C1I2C passage index number: 1
    I2C.I2C2I2C passage index number: 2
    I2C.STANDARD_MODEStandard mode
    I2C.FAST_MODEFast mode
    + diff --git a/zh/peripherals/machine.I2C.md b/zh/peripherals/machine.I2C.md index 161c9ee..76a145f 100644 --- a/zh/peripherals/machine.I2C.md +++ b/zh/peripherals/machine.I2C.md @@ -1076,6 +1076,37 @@ if __name__ == '__main__':
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    常量说明
    I2C.I2C0I2C通路索引号: 0
    I2C.I2C1I2C通路索引号: 1
    I2C.I2C2I2C通路索引号: 2
    I2C.STANDARD_MODE标准模式
    I2C.FAST_MODE快速模式
    + -- Gitee From 99d7c2e556607d6dd024c1e92bef2cafebc66b82 Mon Sep 17 00:00:00 2001 From: "rex.zhou" Date: Tue, 18 Mar 2025 20:28:20 +0800 Subject: [PATCH 3/3] =?UTF-8?q?SPI=20=E5=86=85=E5=AE=B9=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zh/peripherals/machine.SPI.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh/peripherals/machine.SPI.md b/zh/peripherals/machine.SPI.md index ccc4c75..5f197d2 100644 --- a/zh/peripherals/machine.SPI.md +++ b/zh/peripherals/machine.SPI.md @@ -117,7 +117,7 @@ **示例:** ```python ->>> from machine imspi SPI +>>> from machine import SPI >>> # 创建SPI对象 >>> spi_obj = SPI(1, 0, 1) ``` -- Gitee