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 #include <stdio.h> 00004 #include <stdlib.h> 00005 00006 TextLCD lcd(p15, p16, p17, p18, p19, p20, TextLCD::LCD16x2); 00007 00008 Serial pc (USBTX, USBRX); 00009 00010 //DigitalOut myled(LED1); 00011 00012 int main() { 00013 00014 lcd.printf("Hello World!\n"); 00015 lcd.printf("Hello World!\n"); 00016 00017 int n = 0; 00018 00019 while (1) { 00020 lcd.printf("%c",pc.getc()); 00021 n++; 00022 if (n==15) { 00023 lcd.printf("\n"); 00024 n=0; 00025 } 00026 } 00027 }
Generated on Fri Jul 22 2022 10:53:15 by
1.7.2