takumi funada
/
LCD
testing TextLCD and SD card
Revision 1:60d8589343b6, committed 2010-07-01
- Comitter:
- funax
- Date:
- Thu Jul 01 18:04:37 2010 +0000
- Parent:
- 0:cc883de36463
- Commit message:
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r cc883de36463 -r 60d8589343b6 main.cpp --- a/main.cpp Thu Jul 01 18:01:20 2010 +0000 +++ b/main.cpp Thu Jul 01 18:04:37 2010 +0000 @@ -1,20 +1,14 @@ #include "mbed.h" #include "TextLCD.h" +#include "SDFileSystem.h" TextLCD lcd(p24, p25, p26, p27, p28, p29, p30); // rs, rw, e, d0, d1, d2, d3 - -#include "SDFileSystem.h" - SDFileSystem sd(p5, p6, p7, p13, "sd"); - int main() { lcd.printf("Hello World!!"); lcd.locate(0, 1); - - printf("checking SD\n"); - FILE *fp = fopen("/sd/foo.txt", "w"); if(fp == NULL) { error("Could not open file for write\n"); @@ -23,6 +17,4 @@ fclose(fp); lcd.printf("Sayonara World!!"); - - }