Reference   Language | Libraries | Comparison | Changes

I2S

write()

Description

Writes binary data to the I2S interface. This data is sent as a sample or series of samples.

Syntax

I2S.write(val) // blocking
I2S.write(buf, len) // not blocking

Parameters

val: a value to send as a single sample

buf: an array to send as a series of samples

len: the length of the buffer

Returns

byte
write() will return the number of bytes written, though reading that number is optional.

See also

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.