#include "utility/template/i2c.h"
size_t cirque_pinnacle_arduino_wrappers::TwoWire::write(uint8_t data);

Write a single byte to the bus.

Note

This must be called after beginTransmission(). After all bytes are ready to be sent, use endTransmission() to send the internal buffer over the bus.

Parameters:
uint8_t data

The single byte to add to the internal buffer.

Returns:

The number of bytes written to the internal buffer.

Warning

This implementation uses an internal buffer allocated with 32 bytes. If the internal buffer’s maximum capacity is reached, then this will return 0.