diff --git a/en/peripherals/machine.I2C.md b/en/peripherals/machine.I2C.md index ecc0ffd0c3b683bd27da135e6457dde76a2ef606..a4933643b2d44c1e7ea31921049bb291caf2737b 100644 --- a/en/peripherals/machine.I2C.md +++ b/en/peripherals/machine.I2C.md @@ -7,7 +7,7 @@ This class is designed for the two-wire serial protocol for communication betwee ### `machine.I2C`
-
+
class machine.I2C(I2Cn, MODE)
 

Parameter:

@@ -20,6 +20,19 @@ This class is designed for the two-wire serial protocol for communication betwee
+
+
class machine.I2C(I2Cn, MODE)
+
+

Parameter:

+
    +
  • I2Cn - Integer type. I2C channel index number.
    I2C0 : 0 - Channel 0
    I2C1 : 1 - Channel 1
    I2C2 : 2 - Channel 2
    I2C3 : 3 - Channel 3

    +
  • +
  • MODE - Integer type. I2C working mode.
    STANDARD_MODE : 0 - Standard mode
    FAST_MODE1 - Fast mode

    +
  • + +
+
+
class machine.I2C(I2Cn, MODE)
 
@@ -300,9 +313,19 @@ This class is designed for the two-wire serial protocol for communication betwee I2C1 + pin75 + pin74 + + + I2C2 pin68 pin69 + + I2C3 + pin57 + pin58 + @@ -322,9 +345,19 @@ This class is designed for the two-wire serial protocol for communication betwee I2C1 + pin75 + pin74 + + + I2C2 pin68 pin69 + + I2C3 + pin57 + pin58 + @@ -945,6 +978,14 @@ if __name__ == '__main__': I2C.I2C1 I2C passage index number: 1 + + I2C.I2C2 + I2C passage index number: 2 + + + I2C.I2C3 + I2C passage index number: 3 + I2C.STANDARD_MODE Standard mode @@ -972,6 +1013,14 @@ if __name__ == '__main__': I2C.I2C1 I2C passage index number: 1 + + I2C.I2C2 + I2C passage index number: 2 + + + I2C.I2C3 + I2C passage index number: 3 + I2C.STANDARD_MODE Standard mode diff --git a/en/peripherals/machine.Pin.md b/en/peripherals/machine.Pin.md index 748e9ded831be0da8d45eba0f2de8ffe4cce87c4..429c2ee7f6a1039d39866b0a7d4fb84f3c6ea55f 100644 --- a/en/peripherals/machine.Pin.md +++ b/en/peripherals/machine.Pin.md @@ -1520,7 +1520,7 @@ class machine.Pin(GPIOn, direction, pullMode, level) - +
@@ -3064,63 +3064,7 @@ class machine.Pin(GPIOn, direction, pullMode, level) - - - - - - - - - - - - - - - - -
GPIO number
Pin19
Pin20
Pin21
Pin22
Pin23
Pin29
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/zh/peripherals/machine.I2C.md b/zh/peripherals/machine.I2C.md index 0c8e2f6b654ae37838edf784dd56976ea8d695fa..8e654f7242f6b198b7050f78aca1cb2a3b5336ef 100644 --- a/zh/peripherals/machine.I2C.md +++ b/zh/peripherals/machine.I2C.md @@ -8,7 +8,7 @@ ### `machine.I2C`
-
+
class machine.I2C(I2Cn, MODE)
 

参数描述:

@@ -20,6 +20,18 @@
+
+
class machine.I2C(I2Cn, MODE)
+
+

参数描述:

+
    +
  • I2Cn - I2C 通路索引号,int类型,说明如下:
    I2C0 : 0 - 通道0
    I2C1 : 1 - 通道1
    I2C2 : 2 - 通道2
    I2C3 : 3 - 通道3

    +
  • +
  • MODE - I2C 的工作模式,int类型,说明如下:
    STANDARD_MODE : 0 - 标准模式
    FAST_MODE1 - 快速模式

    +
  • +
+
+
class machine.I2C(I2Cn, MODE)
 
@@ -301,9 +313,19 @@
+ + + + + + + + + +
Pin number
Pin6
Pin7
Pin8
Pin9
Pin10
Pin12
Pin13
Pin14
Pin15
Pin16
Pin19
Pin20
I2C1引脚75引脚74
I2C2 引脚68 引脚69
I2C3引脚57引脚58
@@ -323,9 +345,19 @@ I2C1 + 引脚75 + 引脚74 + + + I2C2 引脚68 引脚69 + + I2C3 + 引脚57 + 引脚58 + @@ -938,6 +970,14 @@ if __name__ == '__main__': I2C.I2C1 I2C通路索引号: 1 + + I2C.I2C2 + I2C通路索引号: 2 + + + I2C.I2C3 + I2C通路索引号: 3 + I2C.STANDARD_MODE 标准模式 @@ -965,6 +1005,14 @@ if __name__ == '__main__': I2C.I2C1 I2C通路索引号: 1 + + I2C.I2C2 + I2C通路索引号: 2 + + + I2C.I2C3 + I2C通路索引号: 3 + I2C.STANDARD_MODE 标准模式 diff --git a/zh/peripherals/machine.Pin.md b/zh/peripherals/machine.Pin.md index 9aba4138d71f8083ee168c454e7e1ebc31e2f848..9ba758b98ccda33a2ebc9b80f583af7b4c60c2aa 100644 --- a/zh/peripherals/machine.Pin.md +++ b/zh/peripherals/machine.Pin.md @@ -1521,7 +1521,7 @@ class machine.Pin(GPIOn, direction, pullMode, level) - +
GPIO号