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.
Dependencies: TextLCD mbed SDFileSystem
Diff: main.cpp
- 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;
+}