Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I have a question regarding the I2C interface. In the case of reading or writing a single byte why do the commands use an integer instead of a char? For example the read command description is:
int read(int ack) Read a single byte from the I2C bus
Shouldn't this be: char read(int ack)
and write respectively: int write(char data)