The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: drivers/I2C.h
- Revision:
- 139:856d2700e60b
- Parent:
- 132:9baf128c2fab
- Child:
- 145:64910690c574
--- a/drivers/I2C.h Tue Mar 14 16:20:51 2017 +0000 +++ b/drivers/I2C.h Thu Mar 30 13:26:47 2017 +0100 @@ -117,8 +117,8 @@ * @param repeated Repeated start, true - do not send stop at end * * @returns - * 0 or non-zero - written number of bytes, - * negative - I2C_ERROR_XXX status + * 0 on success (ack), + * non-0 on failure (nack) */ int write(int address, const char *data, int length, bool repeated = false);