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
00001 #include "mbed.h" 00002 #include "TextLCD.h" 00003 #include "SDFileSystem.h" 00004 00005 TextLCD lcd(p24, p25, p26, p27, p28, p29, p30); // rs, rw, e, d0, d1, d2, d3 00006 SDFileSystem sd(p5, p6, p7, p13, "sd"); 00007 00008 int main() { 00009 lcd.printf("Hello World!!"); 00010 lcd.locate(0, 1); 00011 00012 FILE *fp = fopen("/sd/foo.txt", "w"); 00013 if(fp == NULL) { 00014 error("Could not open file for write\n"); 00015 } 00016 fprintf(fp, "Hello SD Card World!!"); 00017 fclose(fp); 00018 00019 lcd.printf("Sayonara World!!"); 00020 }
Generated on Thu Jul 21 2022 14:33:32 by
1.7.2