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 //udenokai sample 00002 #include "mbed.h" 00003 #include "TextLCD.h" 00004 TextLCD lcd(p24, p26, p27, p28, p29, p30); // rs, e, d4-d7 00005 LocalFileSystem local("local"); 00006 00007 const unsigned int MAX_LEN = 256; 00008 00009 int main() 00010 { 00011 FILE *fp = fopen("/local/test.txt","r"); 00012 if(NULL == fp){ 00013 lcd.cls(); 00014 lcd.printf("open error"); 00015 } 00016 char str[MAX_LEN]; 00017 fgets( str , MAX_LEN-1 , fp ); 00018 00019 lcd.cls(); 00020 lcd.printf(str); 00021 00022 fclose(fp); 00023 }
Generated on Fri Jul 15 2022 14:14:23 by
1.7.2