Description
This function initialises the I/O pins to be used for the I2C bus and generates an I2C start / stop condition which puts any attached I2C peripherals into a known state (this is kind of like resetting the I2C bus).The I/O pins used as the I2C bus are defined by the constants SCL, SDA, SCL_port and SDA_port.
SCL_port and SDA_port and defined as PORTA within the library i2c_bb_lib.bas
The bits within PORTA bust be defined by the user before i2c_bb_lib.bas is included with the user program
e.g. const SCL = 3 const SDA = 4 include "i2c_bb_lib.bas"Definition
I2C_master_init()Library
LIB/i2c_bb_lib.basUsage
On entry:There are no parametersOn exit:There is no return value