Reference.WireOnReceive History

Show minor edits - Show changes to markup

December 06, 2011, at 06:53 AM by Scott Fitzgerald -
Changed lines 9-10 from:

handler: the function to be called when the slave receives data; this should take a single int parameter (the number of bytes received from the master) and return nothing, e.g.: void myHandler(int numBytes)

to:

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)

July 02, 2008, at 05:54 PM by David A. Mellis -
Changed lines 9-13 from:

handler: the function to be called when the slave receives data; this should take a single int parameter (the number of bytes received from the master) and return nothing, e.g.:

void myHandler(int numBytes);

to:

handler: the function to be called when the slave receives data; this should take a single int parameter (the number of bytes received from the master) and return nothing, e.g.: void myHandler(int numBytes)

July 02, 2008, at 05:54 PM by David A. Mellis -
Changed lines 11-12 from:
void myHandler(int numBytes);
to:

void myHandler(int numBytes);

July 02, 2008, at 05:54 PM by David A. Mellis -
Changed lines 11-12 from:
void myHandler(int numBytes);
to:
void myHandler(int numBytes);
July 02, 2008, at 05:54 PM by David A. Mellis -
Added lines 1-19:

Wire.onReceive(handler)

Description

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

Parameters

handler: the function to be called when the slave receives data; this should take a single int parameter (the number of bytes received from the master) and return nothing, e.g.:

void myHandler(int numBytes);

Returns

None

See Also

Share