flush()

描述

送出缓冲区内尚未传送的资料,并等待其完成。

flush() 是继承于 Stream 类别。

语法

适用所有板子:

Serial.flush()
Serial1.flush()

适用 86Duino ONE:

Serial2.flush()
Serial3.flush()
Serial485.flush()

适用 86Duino EduCake:

Serial2.flush()
Serial3.flush()
Serial232.flush()

参数

回传

无回传值

See also

Serial
available()
begin()
end()
find()
findUntil()
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.