![](/media/cache/profiles/e1d5be1c7f2f456670de3d53c7b54f4a.50x50_q85.jpg)
Revision 0:fe4986a8f575, committed 2009-12-25
- 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