diff --git a/en/peripherals/machine.I2C.md b/en/peripherals/machine.I2C.md index 8df3ab779c8677346e72117498e2c6a91d21399b..a8f404e5fb4a5a6e75ffa1c7136f39ef269d30d6 100644 --- a/en/peripherals/machine.I2C.md +++ b/en/peripherals/machine.I2C.md @@ -89,11 +89,24 @@ This class is designed for the two-wire serial protocol for communication betwee + +
+
class machine.I2C(I2Cn, MODE)
+
+

Parameter:

+ +
+
-
+

Example:


 >>> from machine import I2C
@@ -675,6 +688,23 @@ This class is designed for the two-wire serial protocol for communication betwee
 
 
 
+
+
+
+  
+  
+  
+
+
+
+
+  
+  
+  
+
+
+
I2CSCLSDA
I2C0pin40pin41
+
## Methods @@ -1376,4 +1406,28 @@ if __name__ == '__main__': + + + + + + + + + + + + + + + + + + + + + + +
ConstantDescription
I2C.I2C0I2C passage index number: 0
I2C.STANDARD_MODEStandard mode
I2C.FAST_MODEFast mode
+
\ No newline at end of file diff --git a/en/peripherals/machine.Pin.md b/en/peripherals/machine.Pin.md index 652f01e3130d17bd59437cc5391eaa8c56698156..af4e87e9fd504b7fe00e311efce7ee70a82b2e80 100644 --- a/en/peripherals/machine.Pin.md +++ b/en/peripherals/machine.Pin.md @@ -3567,8 +3567,17 @@ class machine.Pin(GPIOn, direction, pullMode, level)

Note:

1.Pin37-GPIO11,Pin38-GPIO12,Pin39-GPIO13,Module that support GNSS function do not enable the multiplexing function of this pin and it need to be left open.

+

2.When using the (U)SIM2 function, Pin1, Pin2 and Pin4 can no longer be used as GPIOs.

+ +
+
+

Note:

+

1.There is a hardware conflict between GPIO27-Pin53, GPIO28-Pin52, GPIO29-Pin51 and Pin145 to Pin147. If the pins Pin145 to Pin147 of the (U)SIM2 interface are used, then pins Pin51 to Pin53 cannot be used as GPIO.

+
+
+ diff --git a/en/peripherals/machine.SPI.md b/en/peripherals/machine.SPI.md index 13de26dae733102a8f5294c96eb9e10896cb9a9b..ec6d79cc509044421174c79ec562939171d96fdb 100644 --- a/en/peripherals/machine.SPI.md +++ b/en/peripherals/machine.SPI.md @@ -129,9 +129,23 @@ This class provides bus protocol of serial peripheral interface (SPI) .
  • mode - SPI working mode.
    Clock polarity CPOL: The pin level of clock signal SCLK when SPI is idle (0: low level; 1: high level)
    0CPOL=0, CPHA=0
    1CPOL=0, CPHA=1
    2CPOL=1, CPHA=0
    3CPOL=1, CPHA=1

  • clk - Clock frequency.
    0500kHz
    11MHz
    25MHz
    310MHz
    420MHz

    +
  • +
    +
    class machine.SPI(spi, mode, clk, [group])
    +
    +

    Parameter:

    + +
    @@ -908,6 +922,28 @@ This class provides bus protocol of serial peripheral interface (SPI) . + + + + + + + + + + + + + + + + + + + + +
    SPICSCLKMOSIMISO
    spi0 pin86 pin85 pin88 pin87
    + ## Methods diff --git a/en/peripherals/machine.UART.md b/en/peripherals/machine.UART.md index bec8ed7e6fb51f29e1228348c47e8f1f43ae742e..45bbc27e7479bda09fce9069f3f61a224f6a4b2b 100644 --- a/en/peripherals/machine.UART.md +++ b/en/peripherals/machine.UART.md @@ -87,6 +87,23 @@ This class transmits data through the UART. + +
    +
    class machine.UART(UART.UARTn, baudrate, databits, parity, stopbits, flowctl)
    +
    +

    Parametric Description:

    + +
    + **UART Pin Correspondences:** @@ -1072,6 +1089,27 @@ This class transmits data through the UART. + + + + + + + + + + + + + + + + + + + +
    UART numberTX pinRX pinRTS pinCTS pin
    UART2pin35pin34NULLNULL
    +
    diff --git a/en/peripherals/misc.ADC.md b/en/peripherals/misc.ADC.md index 1534d2e2b1147cbc863f9b0b8961964128e64a6d..37f20ce74e6c279528e3b54814b4a93610355f07 100644 --- a/en/peripherals/misc.ADC.md +++ b/en/peripherals/misc.ADC.md @@ -486,7 +486,6 @@ If successful, a specified channel voltage value is returned. ADC0 Pin number2 - @@ -506,7 +505,6 @@ If successful, a specified channel voltage value is returned. ADC1 Pin number2 - @@ -526,7 +524,25 @@ If successful, a specified channel voltage value is returned. ADC1 Pin number96 + + + + + + + + + + + + + + + + + +
    ADC numberPin correspondence
    ADC0Pin number24
    ADC1Pin number2
    @@ -1018,4 +1034,23 @@ ADC.close() + + + + + + + + + + + + + + + + + +
    ConstantDescription
    ADC.ADC0ADC channel 0
    ADC.ADC1ADC channel 1
    +
    \ No newline at end of file diff --git a/en/peripherals/misc.PWM.md b/en/peripherals/misc.PWM.md index a61f08aa9874baf880699c49e1ca6966b681daf9..fe74381fdab28e936f9d977674513f9cdeab5251 100644 --- a/en/peripherals/misc.PWM.md +++ b/en/peripherals/misc.PWM.md @@ -74,6 +74,8 @@ The corresponding pins of EG915N module for PWM0-PWM3 are as follow:
    PWM0 The corresponding pins of EC800K module for PWM0-PWM3 are as follow:
    PWM1 – pin78
    PWM2 – pin83 +The corresponding pins of BG950S module for PWM0-PWM2 are as follow:
    PWM0 – pin66
    PWM1 – pin38
    PWM2 – pin30 + ## Methods ### `PWM.open` @@ -163,7 +165,7 @@ if __name__ == '__main__': | Constant | Description | Module | | -------- | ----------- | ------------------------------------------------------------ | -| PWM.PWM0 | PWM0 | EC600S / EC600N / EC100Y/EC600U/EC200U/EC800N/EC600M/EG915U/EC800M/EG912N/EG912U/EG915N | -| PWM.PWM1 | PWM1 | EC600S / EC600N / EC100Y/EC800N/EC600M/EC800M/EG912N/EG915N/EC800K | -| PWM.PWM2 | PWM2 | EC600S / EC600N / EC100Y/EC800N/EC600M/EC800M/EG912N/EG915N/EC800K | +| PWM.PWM0 | PWM0 | EC600S / EC600N / EC100Y/EC600U/EC200U/EC800N/EC600M/EG915U/EC800M/EG912N/EG912U/EG915N/BG950S | +| PWM.PWM1 | PWM1 | EC600S / EC600N / EC100Y/EC800N/EC600M/EC800M/EG912N/EG915N/EC800K/BG950S | +| PWM.PWM2 | PWM2 | EC600S / EC600N / EC100Y/EC800N/EC600M/EC800M/EG912N/EG915N/EC800K/BG950S | | PWM.PWM3 | PWM3 | EC600S / EC600N / EC100Y/EC800N/EC600M/EC800M/EG912N/EG915N | \ No newline at end of file diff --git a/zh/peripherals/machine.I2C.md b/zh/peripherals/machine.I2C.md index 42fa83b855aee2c7afd6dd57a29a0c2b03af41ad..4f75353082f6499af892fbffb4867625617fdad8 100644 --- a/zh/peripherals/machine.I2C.md +++ b/zh/peripherals/machine.I2C.md @@ -91,8 +91,20 @@ +
    +
    class machine.I2C(I2Cn, MODE)
    +
    +

    参数描述:

    + +
    +
    -
    +

    示例:

    >>> from machine import I2C
     >>> # 创建I2C对象
    @@ -673,6 +685,23 @@
     
     
     
    +
    +
    +
    +  
    +  
    +  
    +
    +
    +
    +
    +  
    +  
    +  
    +
    +
    +
    I2C编号SCL引脚SDA引脚
    I2C0引脚40引脚41
    +
    @@ -1361,6 +1390,28 @@ if __name__ == '__main__': + + + + + + + + + + + + + + + + + + + + + +
    常量说明
    I2C.I2C0I2C通路索引号: 0
    I2C.STANDARD_MODE标准模式
    I2C.FAST_MODE快速模式
    \ No newline at end of file diff --git a/zh/peripherals/machine.Pin.md b/zh/peripherals/machine.Pin.md index b116aee4349f0c748489bf8a29a6eb69f67fa07a..754f6ca23299f8868f0e7f0972a335f885c02d90 100644 --- a/zh/peripherals/machine.Pin.md +++ b/zh/peripherals/machine.Pin.md @@ -3567,8 +3567,17 @@ class machine.Pin(GPIOn, direction, pullMode, level)

    注:

    1.Pin37-GPIO11,Pin38-GPIO12,Pin39-GPIO13,支持GNSS的模块不会启用此引脚的复用功能,因此该引脚需要保持处于断开状态。

    +

    2.Pin1、Pin2、Pin4在使用(U)SIM2功能时,不能再作为GPIO使用。

    + +
    +
    +

    注:

    +

    1.GPIO27-Pin53、GPIO28-Pin52、GPIO29-Pin51与Pin145~Pin147有硬件冲突。如使用(U)SIM2接口的Pin145~Pin147引脚,则引脚Pin51~Pin53不能用作GPIO。

    +
    +
    + ## 方法 diff --git a/zh/peripherals/machine.SPI.md b/zh/peripherals/machine.SPI.md index e20d303366c8904edd863c37673d1b82c60dae25..85b5f206deb0ea2a992b1cbd57cb02e44970dabd 100644 --- a/zh/peripherals/machine.SPI.md +++ b/zh/peripherals/machine.SPI.md @@ -141,6 +141,21 @@ + +
    +
    class machine.SPI(spi, mode, clk)
    +
    +

    参数描述:

    +
    +
    + @@ -919,6 +934,26 @@ + + + + + + + + + + + + + + + + + + + +
    SPI通道CS引脚CLK引脚MOSI引脚MISO引脚
    spi0引脚86引脚85引脚88引脚87
    diff --git a/zh/peripherals/machine.UART.md b/zh/peripherals/machine.UART.md index 44b30347b450d082d630db6513d75156453a1a24..2745d98eb59f7dc59f0e716ed56eb1b104e0190b 100644 --- a/zh/peripherals/machine.UART.md +++ b/zh/peripherals/machine.UART.md @@ -119,6 +119,23 @@ + +
    +
    class machine.UART(UART.UARTn, baudrate, databits, parity, stopbits, flowctl)
    +
    +

    参数描述:

    + +
    + **UART引脚对应关系 :** @@ -880,7 +897,7 @@ uart1(group = 2) - 引脚号27 + 引脚号29 引脚号28 NULL NULL @@ -1104,6 +1121,27 @@ + + + + + + + + + + + + + + + + + + + +
    uart编号TX引脚RX引脚RTS引脚CTS引脚
    uart2引脚号35引脚号34NULLNULL
    +
    diff --git a/zh/peripherals/misc.ADC.md b/zh/peripherals/misc.ADC.md index 054772c862083568c8ad2e4c8706a88f808b2847..910bae07d0f521763c21a5a95996f696b76ac7e5 100644 --- a/zh/peripherals/misc.ADC.md +++ b/zh/peripherals/misc.ADC.md @@ -492,7 +492,6 @@ ADC.close() ADC0 引脚号2 - @@ -512,7 +511,6 @@ ADC.close() ADC1 引脚号2 - @@ -532,7 +530,25 @@ ADC.close() ADC1 引脚号96 + + + + + + + + + + + + + + + + + +
    ADC编号引脚对应
    ADC0引脚号24
    ADC1引脚号2
    @@ -1012,4 +1028,23 @@ ADC.close() + + + + + + + + + + + + + + + + + +
    常量说明
    ADC.ADC0ADC通道0
    ADC.ADC1ADC通道1
    +
    \ No newline at end of file diff --git a/zh/peripherals/misc.PWM.md b/zh/peripherals/misc.PWM.md index 4f8bf8073158433291f3d2be9d8c632d67064c32..bf8a3c263e8018c0253a9eedf221c69f7ab8df5d 100644 --- a/zh/peripherals/misc.PWM.md +++ b/zh/peripherals/misc.PWM.md @@ -84,6 +84,7 @@ pwm1 = PWM_V2(PWM_V2.PWM1, 100.0, 50)#频率100Hz,占空比50% | EC800K/EG800K | PWM1 – 引脚号78
    PWM2 – 引脚号83 | | FCM360W | PWM0 – 引脚号13
    PWM1 – 引脚号14
    PWM2 – 引脚号15
    PWM3 – 引脚号16
    PWM4 – 引脚号8
    PWM5 – 引脚号7 | | EG915N | PWM0 – 引脚号25
    PWM1 – 引脚号26
    PWM2 – 引脚号104
    PWM3 – 引脚号18 | +| BG950S | PWM0 – 引脚号66
    PWM1 – 引脚号38
    PWM2 – 引脚号30 | ## 方法 @@ -177,9 +178,9 @@ if __name__ == '__main__': | 常量 | 说明 | 使用平台 | | --------- | ----- | ------------------------------------------------------------ | -| PWM.PWM0 | PWM0 | EC600S / EC600N / EC100Y/EC600U/EC200U/EC800N/EC600M/EG915U/EC800M/
    EG912N/BG95/EC600E/EC800E/EC600G/EC800G/EC200A/EG912U/EC600K/FCM360W/EG915N | -| PWM.PWM1 | PWM1 | EC600S / EC600N / EC100Y/EC800N/EC600M/EC800M/EG912N/BG95/EC600E/EC800E/
    EC600G/EC800G/EC200A/EC800K/FCM360W/EG915N/ | -| PWM.PWM2 | PWM2 | EC600S / EC600N / EC100Y/EC800N/EC600M/EC800M/EG912N/EC600E/EC800E/EC600G/
    EC800G/EC200A/EC600K/FCM360W/EG915N/EC800K| +| PWM.PWM0 | PWM0 | EC600S / EC600N / EC100Y/EC600U/EC200U/EC800N/EC600M/EG915U/EC800M/
    EG912N/BG95/EC600E/EC800E/EC600G/EC800G/EC200A/EG912U/EC600K/FCM360W/EG915N/BG950S | +| PWM.PWM1 | PWM1 | EC600S / EC600N / EC100Y/EC800N/EC600M/EC800M/EG912N/BG95/EC600E/EC800E/
    EC600G/EC800G/EC200A/EC800K/FCM360W/EG915N/BG950S | +| PWM.PWM2 | PWM2 | EC600S / EC600N / EC100Y/EC800N/EC600M/EC800M/EG912N/EC600E/EC800E/EC600G/
    EC800G/EC200A/EC600K/FCM360W/EG915N/EC800K/BG950S| | PWM.PWM3 | PWM3 | EC600S / EC600N / EC100Y/EC800N/EC600M/EC800M/EG912N/EC600E/EC800E/EC600G/
    EC800G/EC600K/FCM360W/EG915N | | PWM.PWM4 | PWM4 | EC600E/EC800E/EC800G/FCM360W | | PWM.PWM5 | PWM5 | EC600E/EC800E/EC800G/FCM360W |