Dim Alex / Mbed 2 deprecated wtf

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
dal
Date:
Fri Mar 22 14:36:46 2013 +0000
Commit message:
none

Changed in this revision

i2c.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/i2c.cpp	Fri Mar 22 14:36:46 2013 +0000
@@ -0,0 +1,21 @@
+// Read from I2C slave at address 0x62
+
+#include "mbed.h"
+
+I2C i2c(p9, p10);
+
+int main() {
+    int address = 0x62;
+    char data[2] = {1,2};
+
+    i2c.frequency(1000000);
+    
+    while(1)
+    {
+    i2c.start();
+
+    //i2c.read(address, data, 2);
+    
+    i2c.stop();  
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Mar 22 14:36:46 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/5e5da4a5990b
\ No newline at end of file