Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 }
Generated on Thu Jul 21 2022 02:06:43 by
1.7.2