From 35960325c13aee9efd40836f54693f85919e1fac Mon Sep 17 00:00:00 2001
From: "joey.zhou" <2775152163@qq.com>
Date: Wed, 19 Mar 2025 11:16:22 +0800
Subject: [PATCH 1/2] uart_adc
---
zh/peripherals/machine.UART.md | 585 +++++++++++++++------------------
1 file changed, 270 insertions(+), 315 deletions(-)
diff --git a/zh/peripherals/machine.UART.md b/zh/peripherals/machine.UART.md
index 50fc1b9..f0b5998 100644
--- a/zh/peripherals/machine.UART.md
+++ b/zh/peripherals/machine.UART.md
@@ -98,7 +98,6 @@
-
+
uart.control_485
uart.control_485(UART.GPIOn, direction)
@@ -1407,6 +1356,12 @@ uart.close()
from machine import UART
uart1 = UART(UART.UART1, 115200, 8, 0, 1, 0)
art1.control_485(UART.GPIO24, 1)
+
+
+
uart.control_485
+
该型号不支持此API
+
+
### `uart.set_callback`
--
Gitee
From 74d819ffa49b2b22968d62d390b71219200366ca Mon Sep 17 00:00:00 2001
From: "joey.zhou" <2775152163@qq.com>
Date: Wed, 19 Mar 2025 11:21:09 +0800
Subject: [PATCH 2/2] uart_adc
---
en/peripherals/machine.UART.md | 586 +++++++++++++++------------------
1 file changed, 271 insertions(+), 315 deletions(-)
diff --git a/en/peripherals/machine.UART.md b/en/peripherals/machine.UART.md
index f699449..98319e1 100644
--- a/en/peripherals/machine.UART.md
+++ b/en/peripherals/machine.UART.md
@@ -66,7 +66,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -74,9 +73,8 @@ This class transmits data through the UART.
UART1 |
pin124 |
pin123 |
- |
- |
- |
+ NULL |
+ NULL |
UART2 |
@@ -84,15 +82,13 @@ This class transmits data through the UART.
pin31 |
pin34 |
pin33 |
- |
UART4 |
pin103 |
pin104 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -104,7 +100,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -112,9 +107,8 @@ This class transmits data through the UART.
UART1 |
pin138 |
pin137 |
- |
- |
- |
+ NULL |
+ NULL |
UART2 |
@@ -122,15 +116,13 @@ This class transmits data through the UART.
pin68 |
pin65 |
pin64 |
- |
UART4 |
- pin82(EC200UXXAA is not supported.) |
+ pin82 |
pin81 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -142,33 +134,29 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
- UART0(The use of other Uarts is recommended.) |
+ UART0 |
pin12 |
pin11 |
- |
- |
- |
+ NULL |
+ NULL |
UART1 |
- pin63(EC200ACN_LA: pin26) |
- pin66(EC200ACN_LA: pin27) |
- |
- |
- EC200ACN_LA module uart1 pin is different from other models. |
+ pin63 |
+ pin66 |
+ NULL |
+ NULL |
UART2 |
pin67 |
pin68 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -180,33 +168,29 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
- UART0(The use of other Uarts is recommended.) |
+ UART0 |
pin12 |
pin11 |
- |
- |
- |
+ NULL |
+ NULL |
UART1 |
- pin63(EC200ACN_LA: pin26) |
- pin66(EC200ACN_LA: pin27) |
- |
- |
- EC200ACN_LA module uart1 pin is different from other models. |
+ pin63 |
+ pin66 |
+ NULL |
+ NULL |
UART2 |
pin67 |
pin68 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -218,7 +202,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -226,25 +209,22 @@ This class transmits data through the UART.
UART0 |
pin71 |
pin72 |
- |
- |
- |
+ NULL |
+ NULL |
UART1 |
pin3 |
pin2 |
- |
- |
- |
+ NULL |
+ NULL |
UART2 |
pin32 |
pin31 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -256,7 +236,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -264,25 +243,22 @@ This class transmits data through the UART.
UART0 |
pin71 |
pin72 |
- |
- |
- |
+ NULL |
+ NULL |
UART1 |
pin3 |
pin2 |
- |
- |
- |
+ NULL |
+ NULL |
UART2 |
pin32 |
pin31 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -294,7 +270,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -302,25 +277,22 @@ This class transmits data through the UART.
UART0 |
pin21 |
pin20 |
- |
- |
- |
+ NULL |
+ NULL |
UART1 |
pin27 |
pin28 |
- |
- |
- |
+ NULL |
+ NULL |
UART2 |
pin50 |
pin49 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -332,7 +304,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -340,25 +311,22 @@ This class transmits data through the UART.
UART0 |
pin39 |
pin38 |
- |
- |
- |
+ NULL |
+ NULL |
UART1 |
pin50 |
pin51 |
- |
- |
- |
+ NULL |
+ NULL |
UART2 |
pin18 |
pin17 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -370,7 +338,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -378,9 +345,8 @@ This class transmits data through the UART.
UART1 |
pin29 |
pin28 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -392,7 +358,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -400,33 +365,29 @@ This class transmits data through the UART.
UART0 |
pin23 |
pin22 |
- |
- |
- |
+ NULL |
+ NULL |
UART1 |
pin27 |
pin28 |
- |
- |
- |
+ NULL |
+ NULL |
UART2 |
pin64 |
pin65 |
- |
- |
- |
+ NULL |
+ NULL |
UART4 |
pin35 |
pin34 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -438,7 +399,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -446,33 +406,29 @@ This class transmits data through the UART.
UART0 |
pin71 |
pin72 |
- |
- |
- |
+ NULL |
+ NULL |
UART1(flowctl = 0) |
pin3 |
pin2 |
- |
- |
- |
+ NULL |
+ NULL |
UART1(flowctl = 1) |
pin33 |
pin34 |
- |
- |
- |
+ NULL |
+ NULL |
UART2 |
pin32 |
pin31 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -484,7 +440,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -492,9 +447,8 @@ This class transmits data through the UART.
UART1 |
pin27 |
pin28 |
- |
- |
- |
+ NULL |
+ NULL |
UART2 |
@@ -502,15 +456,13 @@ This class transmits data through the UART.
pin34 |
pin37 |
pin36 |
- |
UART4 |
pin19 |
pin18 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -522,7 +474,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -530,41 +481,36 @@ This class transmits data through the UART.
UART0 |
pin39 |
pin38 |
- |
- |
- |
+ NULL |
+ NULL |
UART1(flowctl = 0) |
pin50 |
pin51 |
- |
- |
- |
+ NULL |
+ NULL |
UART1(flowctl = 1) |
pin22 |
pin23 |
- |
- |
- Uart1 is not available for EC800MCNGA, CNGB, CNGD/ EG810MCNGA, and CNGB modules. |
+ NULL |
+ NULL |
UART2 |
pin18 |
pin17 |
- |
- |
- |
+ NULL |
+ NULL |
UART4 |
pin29 |
pin28 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -576,7 +522,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -584,41 +529,36 @@ This class transmits data through the UART.
UART0 |
pin39 |
pin38 |
- |
- |
- |
+ NULL |
+ NULL |
UART1(flowctl = 0) |
pin50 |
pin51 |
- |
- |
- |
+ NULL |
+ NULL |
UART1(flowctl = 1) |
pin22 |
pin23 |
- |
- |
- Uart1 is not available for EC800MCNGA, CNGB, CNGD/ EG810MCNGA, and CNGB modules. |
+ NULL |
+ NULL |
UART2 |
pin18 |
pin17 |
- |
- |
- |
+ NULL |
+ NULL |
UART4 |
pin29 |
pin28 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -630,7 +570,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -638,33 +577,29 @@ This class transmits data through the UART.
UART0 |
pin23 |
pin22 |
- |
- |
- |
+ NULL |
+ NULL |
UART1(flowctl = 0) |
pin27 |
pin28 |
- |
- |
- |
+ NULL |
+ NULL |
UART1(flowctl = 1) |
pin36 |
pin37 |
- |
- |
- |
+ NULL |
+ NULL |
UART2 |
pin35 |
pin34 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -676,7 +611,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -684,25 +618,22 @@ This class transmits data through the UART.
UART0 |
pin71 |
pin72 |
- |
- |
- |
+ NULL |
+ NULL |
UART1 |
pin70 |
pin69 |
- |
- |
- EC600ECN_LE&LQ is not available. |
+ NULL |
+ NULL |
UART2 |
pin32 |
pin31 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -714,7 +645,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -722,25 +652,22 @@ This class transmits data through the UART.
UART0 |
pin39 |
pin38 |
- |
- |
- |
+ NULL |
+ NULL |
UART1 |
pin29 |
pin28 |
- |
- |
- |
+ NULL |
+ NULL |
UART2 |
pin18 |
pin17 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -752,7 +679,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -760,9 +686,8 @@ This class transmits data through the UART.
UART0 |
pin124 |
pin123 |
- |
- |
- |
+ NULL |
+ NULL |
UART2 |
@@ -770,31 +695,27 @@ This class transmits data through the UART.
pin31 |
pin34 |
pin33 |
- |
UART4 |
pin116 |
pin9 |
- |
- |
- |
+ NULL |
+ NULL |
UART5 |
pin125 |
pin126 |
- |
- |
- |
+ NULL |
+ NULL |
UART6 |
pin106 |
pin105 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -806,7 +727,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -814,33 +734,29 @@ This class transmits data through the UART.
UART1 |
pin29 |
pin28 |
- |
- |
- |
+ NULL |
+ NULL |
UART2 |
pin18 |
pin17 |
- |
- |
- |
+ NULL |
+ NULL |
UART5 |
pin23 |
pin22 |
- |
- |
- |
+ NULL |
+ NULL |
UART6 |
pin86 |
pin83 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -852,7 +768,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -860,9 +775,8 @@ This class transmits data through the UART.
UART1 |
pin27 |
pin28 |
- |
- |
- |
+ NULL |
+ NULL |
UART2 |
@@ -870,15 +784,13 @@ This class transmits data through the UART.
pin34 |
pin37 |
pin36 |
- |
UART4 |
pin19 |
pin18 |
- |
- |
- EG912UGL_AA is not available. |
+ NULL |
+ NULL |
@@ -890,7 +802,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -898,33 +809,29 @@ This class transmits data through the UART.
UART0 |
pin71 |
pin72 |
- |
- |
- |
+ NULL |
+ NULL |
UART1(flowctl = 0) |
pin3 |
pin2 |
- |
- |
- |
+ NULL |
+ NULL |
UART1(flowctl = 1) |
pin33 |
pin34 |
- |
- |
- |
+ NULL |
+ NULL |
UART2 |
pin32 |
pin31 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -936,7 +843,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -944,33 +850,29 @@ This class transmits data through the UART.
UART0 |
pin39 |
pin38 |
- |
- |
- |
+ NULL |
+ NULL |
UART1(flowctl = 0) |
pin50 |
pin51 |
- |
- |
- EG800KCN is not available. |
+ NULL |
+ NULL |
UART1(flowctl = 1) |
pin22 |
pin23 |
- |
- |
- EG800KCN is not available. |
+ NULL |
+ NULL |
UART2 |
pin18 |
pin17 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -982,7 +884,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -990,33 +891,29 @@ This class transmits data through the UART.
UART0 |
pin39 |
pin38 |
- |
- |
- |
+ NULL |
+ NULL |
UART1(flowctl = 0) |
pin50 |
pin51 |
- |
- |
- EG800KCN is not available. |
+ NULL |
+ NULL |
UART1(flowctl = 1) |
pin22 |
pin23 |
- |
- |
- EG800KCN is not available. |
+ NULL |
+ NULL |
UART2 |
pin18 |
pin17 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -1028,7 +925,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -1036,17 +932,15 @@ This class transmits data through the UART.
UART0 |
pin39 |
pin38 |
- |
- |
- |
+ NULL |
+ NULL |
UART1 |
pin22 |
pin23 |
- |
- |
- |
+ NULL |
+ NULL |
UART2 |
@@ -1054,15 +948,13 @@ This class transmits data through the UART.
pin17 |
pin23 |
pin22 |
- |
UART3 |
pin29 |
pin28 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -1074,7 +966,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -1082,17 +973,15 @@ This class transmits data through the UART.
UART0 |
pin27 |
pin26 |
- |
- |
- |
+ NULL |
+ NULL |
UART1 |
pin20 |
pin19 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -1104,7 +993,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -1112,17 +1000,15 @@ This class transmits data through the UART.
UART1 |
pin35 |
pin34 |
- |
- |
- |
+ NULL |
+ NULL |
UART2 |
pin28 |
pin27 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -1134,7 +1020,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -1142,9 +1027,8 @@ This class transmits data through the UART.
UART0 |
pin21 |
pin22 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -1156,7 +1040,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -1164,9 +1047,8 @@ This class transmits data through the UART.
UART0 |
pin22 |
pin21 |
- |
- |
- |
+ NULL |
+ NULL |
@@ -1178,7 +1060,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -1186,17 +1067,15 @@ This class transmits data through the UART.
UART0 |
pin23 |
pin22 |
- |
- |
- |
+ NULL |
+ NULL |
UART1 |
pin27 |
pin28 |
- |
- |
- |
+ NULL |
+ NULL |
UART2 |
@@ -1204,15 +1083,13 @@ This class transmits data through the UART.
pin34 |
pin36 |
pin37 |
- |
UART4 |
pin36 |
pin37 |
- |
- |
- Not supported by EG915NEU_AG. |
+ NULL |
+ NULL |
@@ -1224,7 +1101,6 @@ This class transmits data through the UART.
RX pin |
RTS pin |
CTS pin |
-
Attention |
@@ -1232,33 +1108,101 @@ This class transmits data through the UART.
UART0 |
pin39 |
pin38 |
- |
- |
- |
+ NULL |
+ NULL |
UART1 |
pin29 |
pin28 |
- |
- |
- |
+ NULL |
+ NULL |
UART2 |
pin18 |
pin17 |
- |
- |
- |
+ NULL |
+ NULL |
+