WIRE

wire ( -- )

Select wire vocabulary:

Wire.available 
Wire.begin
Wire.beginTransmission
Wire.busy 
Wire.endTransmission 
Wire.flush 
Wire.getClock
Wire.getErrorText 
Wire.getTimeout 
Wire.lastError 
Wire.peek 
Wire.read 
Wire.readTransmission
Wire.requestFrom 
Wire.setClock 
Wire.setTimeout
Wire.write 
Wire.writeTransmission 

Wire.available ( -- fl )

Returns the number of bytes available for retrieval with Wire.read. This should be called on a master device after a call to Wire.requestFrom

Wire.begin ( -- f )

Initiate the Wire library and join the I2C bus as a master. This should normally be called only once.

Wire.beginTransmission ( n -- )

Begin a transmission to the slave device at address n. Subsequently, queue bytes for transmission with the Wire.write and transmit them by calling Wire.endTransmission

Wire.busy ( -- f )

Returns the hardware status of the bus. This status can be use in multi-master environments for application level interleaving of commands, also in single master environment, it can be used to detect a 'hung' bus.