diff --git a/en/peripherals/machine.UART.md b/en/peripherals/machine.UART.md index 02019d2b948faca85ebf1340d016d6bd74936a33..bec8ed7e6fb51f29e1228348c47e8f1f43ae742e 100644 --- a/en/peripherals/machine.UART.md +++ b/en/peripherals/machine.UART.md @@ -1253,15 +1253,16 @@ This method disables the UART. `-1` - Failed execution +### `uart.control_485` +
-

uart.control_485

uart.control_485(UART.GPIOn, direction)
 

This method is used to control the 485 communication direction, and the specified GPIO is pulled up and down before and after the serial port sends data to indicate the 485 communication direction.

Parametric Description:

-

uart.control_485

This API is not supported by this model

+
### `uart.set_callback` diff --git a/zh/peripherals/machine.UART.md b/zh/peripherals/machine.UART.md index e45de618ee4ff72c4d9a86b55ae05db328a00e5d..b60faef333a77040860b42e26c043a0a3036f10c 100644 --- a/zh/peripherals/machine.UART.md +++ b/zh/peripherals/machine.UART.md @@ -1292,7 +1292,7 @@ uart.close()

该方法用于控制485通信方向,串口发送数据之前和之后进行拉高拉低指定GPIO,用来指示485通信的方向。

参数描述: