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.

Revision:
120:7c328cabac7e
Parent:
118:082adc85693f
Child:
122:f9eeca106725
--- a/i2c_api.h	Wed Apr 27 12:10:56 2016 -0500
+++ b/i2c_api.h	Tue May 10 12:23:43 2016 -0500
@@ -124,7 +124,7 @@
 /** Write one byte.
  *  @param obj The i2c object
  *  @param data Byte to be written
- *  @return 1 if NAK was received, 0 if ACK was received, 2 for timeout.
+ *  @return 0 if NAK was received, 1 if ACK was received, 2 for timeout.
  */
 int  i2c_byte_write(i2c_t *obj, int data);