How do I program I2C?
A basic Master to slave read or write sequence for I2C follows the following order:Send the START bit (S).Send the slave address (ADDR).Send the Read(R)-1 / Write(W)-0 bit.Wait for/Send an acknowledge bit (A).Send/Receive the data byte (8 bits) (DATA).Expect/Send acknowledge bit (A).Send the STOP bi...