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.