Description

begin() initializes the Wire library and joins the I2C bus as a controller or a peripheral. This function should normally be called only once.

This function is part of the Wire library. See the Wire main page for more information.

Syntax

  • Wire.begin()
  • Wire.begin(address)

Parameters

  • address (optional): the 7-bit peripheral address. If not specified, the device joins the bus as a controller. Allowed data types: int.

Returns

Nothing.