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 #include "mbed.h" 00002 #include "MyLCD.h" 00003 00004 I2C i2c(dp5,dp27); // sda, scl <== LPC1114FN28 00005 MyLCD lcd(&i2c); 00006 DigitalOut led1(LED1); 00007 DigitalOut led2(LED2); 00008 00009 int main() { 00010 int i; 00011 00012 wait(1); 00013 lcd.clear(); 00014 00015 i = 0; 00016 led1 = 1; 00017 led2 = 0; 00018 while(1) { 00019 led1 = !led1; 00020 led2 = !led2; 00021 lcd.home(); 00022 // 1234567890123456 00023 lcd.printf("Welcome mbed!\ncount (%d)\n",i++); 00024 wait(1); 00025 } 00026 }
Generated on Thu Jul 21 2022 12:08:57 by
1.7.2