Wire.requestFrom  ( address-of-device of-bytes sendstop-option -- flag )

published: 24 January 2022 / updated 1 April 2024

Lire cette page en français

 

vocabulary: Wire

Used by the master to request bytes from a slave device. The bytes may then be retrieved with

the wire.available and wire.read words.

The bytes are really received from the addressed slave device and stored in a data buffer then the connection is ended or not if required. The word wire.available indicates the numbers of bytes present in that data buffer and wire.read allows reading the bytes from the data buffer.

wire.requestFrom accepts a sendstop-option parameter changing its behavior for compatibility with certain I2C devices.


Legal: site web personnel sans commerce / personal site without seling