udenokai sample

Dependencies:   TextLCD mbed

Revision:
0:7647fa87431f
--- /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