Answers for "i2c slave onreceive"

C++
0

i2c slave onreceive

Wire.onReceive(handler)

// Registers a function to be called when a slave device receives
// a transmission from a master

// handler: the function to be called when the slave receives data;
// this should take a single int parameter (the number of bytes read
// from the master) and return nothing
// e.g.: void myHandler(int numBytes)
Posted by: Guest on July-13-2021

Browse Popular Code Answers by Language