Flush the serial port buffers
dev - connected serial device opened using device
If an additional parameter is provided of "input" or "output", then only the input or output buffer will be flushed
None
See also: arduino, device, read.
Package: arduino