I2C-Transmitter

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
ladner
Date:
Sat Jan 28 09:20:19 2017 +0000
Commit message:

Changed in this revision

main.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
diff -r 000000000000 -r 694ee893e018 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Jan 28 09:20:19 2017 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+
+I2C i2c(P0_5, P0_4);
+//DigitalOut myled(LED1);
+
+int main() {
+    wait(0.5);
+    //myled=1;
+    wait(0.2);
+    i2c.start();
+    i2c.write(0x50);
+    while(1)
+    i2c.write(0x93);
+    i2c.stop();
+    wait(0.2);
+    //myled=0;
+    while(1);
+}
diff -r 000000000000 -r 694ee893e018 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Jan 28 09:20:19 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/ad3be0349dc5
\ No newline at end of file