I am creating a master/slave setup with an RPi as the master and an Arduino as the slave. For now I am only using one, but I will eventually have up to 25 on a single I2C bus.
On the Arduino side, the Wire library has a Wire.onRequest function as well as a Wire.requestFrom function, where .requestFrom is used by the Master to request a number of bytes from the slave, which uses Wire.onRequest to respond with the requested info.
I'm currently using the Node.js i2c-bus library on my Pi to handle I2C. I'm wondering if the i2c-bus.read function works similarly to the Wire.requestFrom function. Are these apples and oranges, or functionally the same?
The i2c-bus documentation mentions nothing about a specific "request" functionality. More generally, is the plain I2C read the same as the Arduino's "request" functionality?