From e848b61ca045041e28ec83656c8c9338923e20ce Mon Sep 17 00:00:00 2001 From: Tangxiulin <11016272+ha-ha-earl@user.noreply.gitee.com> Date: Wed, 2 Apr 2025 16:08:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?1.wiki=E4=B8=ADEC800M=20i2c1=E5=BC=95?= =?UTF-8?q?=E8=84=9A=E4=B8=8D=E6=AD=A3=E7=A1=AE=EF=BC=8C=E9=9C=80=E8=A1=A5?= =?UTF-8?q?=E5=85=85I2C2=E3=80=81I2C3=E5=BC=95=E8=84=9A=202.=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E8=8B=B1=E6=96=87pin=E8=A1=A8=E4=B8=AD=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E7=9A=84FCM360W=E5=9E=8B=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/peripherals/machine.I2C.md | 51 +++++++++++++++++++++++++++---- en/peripherals/machine.Pin.md | 56 ----------------------------------- zh/peripherals/machine.I2C.md | 50 ++++++++++++++++++++++++++++++- 3 files changed, 95 insertions(+), 62 deletions(-) diff --git a/en/peripherals/machine.I2C.md b/en/peripherals/machine.I2C.md index ecc0ffd..94467f2 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 betweeclass machine.I2C(I2Cn, MODE)
+
+Parameter:
+I2Cn
- Integer type. I2C channel index number.I2C0
: 0
- Channel 0 I2C1
: 1
- Channel 1 I2C2
: 2
- Channel 2I2C3
: 3
- Channel 3
MODE
- Integer type. I2C working mode.STANDARD_MODE
: 0
- Standard modeFAST_MODE
:1
- Fast mode
class machine.I2C(I2Cn, MODE)
@@ -300,9 +313,19 @@ This class is designed for the two-wire serial protocol for communication betwee
Pin number | -||
---|---|---|
Pin6 | -||
Pin7 | -||
Pin8 | -||
Pin9 | -||
Pin10 | -||
Pin12 | ||
Pin13 | -||
Pin14 | -||
Pin15 | -||
Pin16 | -||
Pin19 | ||
Pin20 | ||
I2C1 | +引脚75 | +引脚74 | +
I2C2 | 引脚68 | 引脚69 |
I2C3 | +引脚57 | +引脚58 | +