Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
new2mac
Date:
Fri Dec 25 08:49:31 2009 +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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Dec 25 08:49:31 2009 +0000
@@ -0,0 +1,14 @@
+//This is my fisrt program in mbed trying to light a simple RGB led
+// WARNING THIS PROGRAM DOES NOT WORK
+
+#include "mbed.h"
+
+
+I2C i2c (p28,p27);  // Setup the I2C interface: sda, scl
+
+int main() {
+    i2c.write(0x00, "c", 1); // Send command string
+    i2c.write(0x00, "0xff", 1); // Send command string
+    i2c.write(0x00, "0xc4", 1); // Send command string
+    i2c.write(0x00, "0x30", 1); // Send command string
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Dec 25 08:49:31 2009 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/49a220cc26e0