Write data to the serial port.
Returns the amount of bytes written.
Future<int> write(Uint8List bytes, {Duration? timeout});