end()
描述
关闭串列埠传输,并允许 TX 和 RX 脚做为一般资料输入、输出用。如果想要重新启用串列埠传输,只要再呼叫一次 Serial.begin() 即可。
语法
适用所有板子:
Serial.end()
Serial1.end()
适用 86Duino ONE/EduCake:
Serial2.end()
Serial3.end()
参数
回传值
无回传值
See also
- Serial
- available()
- begin()
- find()
- findUntil()
- flush()
- parseFloat()
- parseInt()
- peek()
- print()
- println()
- read()
- readBytes()
- readBytesUntil()
- setTimeout()
- write()
- serialEvent()
The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.