
udenokai sample
Revision 0:7647fa87431f, committed 2011-06-10
- Comitter:
- marishi
- Date:
- Fri Jun 10 17:52:47 2011 +0000
- Commit message:
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.lib Fri Jun 10 17:52:47 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/simon/code/TextLCD/#44f34c09bd37
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Jun 10 17:52:47 2011 +0000 @@ -0,0 +1,23 @@ +//udenokai sample +#include "mbed.h" +#include "TextLCD.h" +TextLCD lcd(p24, p26, p27, p28, p29, p30); // rs, e, d4-d7 +LocalFileSystem local("local"); + +const unsigned int MAX_LEN = 256; + +int main() +{ + FILE *fp = fopen("/local/test.txt","r"); + if(NULL == fp){ + lcd.cls(); + lcd.printf("open error"); + } + char str[MAX_LEN]; + fgets( str , MAX_LEN-1 , fp ); + + lcd.cls(); + lcd.printf(str); + + fclose(fp); +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Jun 10 17:52:47 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912