Dependencies:   mbed

Revision:
0:fe4986a8f575
--- /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