Syntax
virtual size_t write(
    uint8_t data
);
ContentsIndex
PreviousUpNext
TwoWire::write Method (uint8_t)
TwoWire Class | Example
Syntax
virtual size_t write(
    uint8_t data
);
Description

This function writes data into the queue and is called between functions beginTransmission()and endTransmission().

Parameters
Parameters 
Description 
uint8_t data 
[IN]A byte of data to be written. 
Returns

Number of bytes of data written into the queue.

Example
#include <Wire.h>
void setup()
{
    Wire.begin();
}
void loop()
{
    Wire.beginTransmission(0x27);
    Wire.write('a');
    Wire.endTransmission();
}
File

Wire.h

Class