Syntax
uint8_t endTransmission();
ContentsIndex
PreviousUpNext
TwoWire::endTransmission Method
TwoWire Class | Example
Syntax
uint8_t endTransmission();
Description

Ends the communication with the slave assigned by beginTransmission() and transmits the data buffered by write() to the slave.

Returns

Number of bytes of data sent to slave(unit:byte).

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

Wire.h

Class