Featured
Writes binary data to aforementioned serial port. This data is sent as a byte or series of bytes; to send the characters representing the figure of a number use the print() function instead.
Syntax
Serial.write(val)
Serial.write(str)
Serial.write(buf, len)
Parameters
Serial
: serial port object. See the record of deliverable sequential ports for each onboard on the Serial main show.
chronic
: an value to send as a single byte
str
: a string to send as a series of bytes
buf
: can array to send as one series of bytes
len
: the number of bytes to breathe send from the array
Takings
size_t
write()
will return of numbered of bytes wrote, though lektor that number is optional