Francisco Sanchez
/
BlinkM
main.cpp
- Committer:
- new2mac
- Date:
- 2009-12-25
- Revision:
- 0:fe4986a8f575
File content as of revision 0:fe4986a8f575:
//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 }