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 "TextLCD.h" 00003 00004 TextLCD lcd(PTE30, PTE29, PTE23, PTE22, PTE21, PTE20, TextLCD::LCD16x2); // rs, e, d4-d7 00005 DigitalOut ledA(LED3); 00006 DigitalOut ledB(LED2); 00007 00008 int main() { 00009 ledA=0; 00010 ledB=1; 00011 while(true) { 00012 ledA=!ledA; 00013 ledB=!ledB; 00014 lcd.printf("Hello World!"); 00015 lcd.locate(0,1); 00016 lcd.printf(" Charrua :)"); 00017 wait(5); 00018 lcd.cls(); 00019 ledA=!ledA; 00020 ledB=!ledB; 00021 lcd.printf("E.N.I.D.H."); 00022 lcd.locate(0,1); 00023 lcd.printf("Dep. Eng. Marit."); 00024 wait(3); 00025 lcd.cls(); 00026 } 00027 }
Generated on Thu Jul 14 2022 04:44:10 by
1.7.2