Skip to content

Commit 83578b5

Browse files
authored
Update RS485_SP485EEN.ino
1 parent 2bc7915 commit 83578b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/Unit/RS485_SP485EEN/RS485_SP485EEN.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ void setup() {
2727
M5.Power.begin();
2828
M5.Lcd.setTextSize(1);
2929
M5.Lcd.drawString("RS485 Unit test", 75, 3, 4);
30-
Serial.begin(115200);
3130
Serial2.begin(115200, SERIAL_8N1, RX_PIN, TX_PIN); //Set the baud rate of serial port 2 to 115200,8 data bits, no parity bits, and 1 stop bit, and set RX to 16 and TX to 17. 设置串口二的波特率为115200,8位数据位,没有校验位,1位停止位,并设置RX为16,TX为17
3231
}
3332

@@ -39,4 +38,4 @@ void loop() {
3938
M5.Lcd.print(char(Serial2.read()));
4039
}
4140
delay(100);
42-
}
41+
}

0 commit comments

Comments
 (0)