Wire \ Libraries \ Wiring ALPHA 1.0
Author: Hernando Barragán
Description: Wiring is an electronic sketchbook and hardware electronics for developing ideas. It is a context for learning fundamentals of computer programming and prototyping with electronics within the context of the electronic arts.
Keywords: Wiring, Processing, Interactive Media, Electronic Arts, Programming, C, C++, Hernando Barragán

Search wiring.org.co:

Libraries

## Wire

There is a TWI (Two Wire Interface) port available on the Wiring board named Wire. The port Wire is available on the Wiring digital pins 0(SCL) and 1(SDA).

Wire
Wiring TWI port available on pins 0 and 1.

beginTransmission()
Starts data transmission to the specified device.

endTransmission()
Marks the end of a transmission to a device.

begin()
Initiates the TWI as a Master or a slave using the address specified.

onReceive()
Set the function that executes whenever data is received as a slave device.

onRequest()
Set the function that executes whenever data is requested by a master from this device.

receive()
Returns a byte received from a device.

requestFrom()
Start reading a specified number of bytes from the device specified with a given address.

available()
Returns the number of bytes available.

send()
Sends data to a device.