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.
main.cpp
- Committer:
- yueee_yt
- Date:
- 2011-05-07
- Revision:
- 0:e47238c411af
File content as of revision 0:e47238c411af:
#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) {
FILE *fp = fopen("/sd/test.txt", "w");
if (NULL != fp) {
fprintf(fp, "StarBoard Orange. mbed NXP LPC1768.");
fclose(fp);
} else {
error("Open failed.\n" );
return 1;
}
lcd.cls();
lcd.locate(0,0);
lcd.printf("Finish");
return 0;
}