MCPcopy
hub / github.com/arduino/Arduino / write

Method write

arduino-core/src/processing/app/Serial.java:243–249  ·  view source on GitHub ↗

This will handle both ints, bytes and chars transparently.

(int what)

Source from the content-addressed store, hash-verified

241 * This will handle both ints, bytes and chars transparently.
242 */
243 public void write(int what) { // will also cover char
244 try {
245 port.writeInt(what & 0xff);
246 } catch (SerialPortException e) {
247 errorMessage("write", e);
248 }
249 }
250
251
252 public void write(byte bytes[]) {

Callers 15

dumpFunction · 0.45
feedMethod · 0.45
feedMethod · 0.45
feedMethod · 0.45
get_confidenceMethod · 0.45
feedMethod · 0.45
closeMethod · 0.45
writeFunction · 0.45
copyFileMethod · 0.45
writeStringToFileMethod · 0.45

Calls 1

errorMessageMethod · 0.95

Tested by 1

removeCariageReturnsMethod · 0.36