Wire.begin

Name
Wire.begin - to initialize either master or slave devices

Description

 * void Wire.begin ( u8 address, u16 speed ) - (P8)


 * If address = 0 we have to initialize a MCU master : I2C.master(speed) is called
 * else we initialize a slave either MCU or peripheral ( buffers, states).
 * If the MCU slave works on interrupt address is memorized.

Syntax
Wire.begin( u8 address, u16 speed );
 * P8


 * Parameters:
 * address - to initialize a master the value is 0, else the value is the one indicated in the data sheet for a peripheral device and the one chosen by the user for a MCU slave.
 * speed - for a slave the value is 0. for a master supported bus speed constants are:
 * I2C_100KHZ - 100Khz
 * I2C_400KHZ - 400Khz
 * I2C_1MHZ - 1 Mhz


 * Returns/Output;
 * None

Examples
Master_transmitter_I2C Slave_reader_I2C  Master_reader_I2C  Slave_transmitter_I2C