Yasushi TAUCHI / Mbed 2 deprecated SD_TEST_OpenDir

Dependencies:   TextLCD mbed SDFileSystem

Revision:
0:bd60a27d6122
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat May 07 12:11:13 2011 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+#include "TextLCD.h"
+#include "SDFileSystem.h"
+
+TextLCD lcd(p24, p26, p27, p28, p29, p30);
+SDFileSystem sd(p5, p6, p7, p8, "sd");
+
+int main(void) {
+    DIR *d;
+    struct dirent *p;
+    lcd.cls();
+    d = opendir("/sd");
+    if ( d != NULL )
+    {
+        while ( (p = readdir(d)) != NULL )
+        {
+            lcd.printf("%s     \n", p->d_name);
+            wait(0.5);
+        }
+    }
+    lcd.locate(0,1);
+    lcd.printf("**  Finish  **  ");
+    return 0;
+}