Francisco Sanchez / Mbed 2 deprecated BlinkM

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 //This is my fisrt program in mbed trying to light a simple RGB led
00002 // WARNING THIS PROGRAM DOES NOT WORK
00003 
00004 #include "mbed.h"
00005 
00006 
00007 I2C i2c (p28,p27);  // Setup the I2C interface: sda, scl
00008 
00009 int main() {
00010     i2c.write(0x00, "c", 1); // Send command string
00011     i2c.write(0x00, "0xff", 1); // Send command string
00012     i2c.write(0x00, "0xc4", 1); // Send command string
00013     i2c.write(0x00, "0x30", 1); // Send command string
00014 }