I am currently learning how to program I2C on Arduino. I have read my tutorials, and I tried some of them. However, I am still very confused.
Use Wire.read() to save the received information in a variable. Should I declare the variable as a bit, or an int?
Many tutorials set those variables as pointers (ex. *a, *b). Is this necessary?
By looking at data sheet, each address have 8 bits. Will all 8 bits be passed at the same time (Have one Wire.read()), or will each bit would be passed individually ( Have more than one Wire.read())
For programming I2C, we need a address for the devices...where can I find that address on the data sheet?
I wrote a program for Real Time Clock, and I keep getting -1s or 255s...Can someone explain this a little bit?
If you have read all the questions already, I really appreciate your time and patience. If you guys would like to help me out with this problems, that would be great!