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: SDFileSystem mbed
main.cpp
00001 /* 00002 説明 00003 Nucleo-F303K8とMicroSDを使ったデータ保存のサンプルプログラム 00004 00005 以下ピン配置 00006 Nucleo SDモジュール 00007 GND-----VSS-----------0V 00008 +3V3----VDD 00009 D11-----CMD 00010 D12-----DAT0 00011 D13-----CLK 00012 D9------CD 00013 */ 00014 00015 #include "mbed.h" 00016 #include "SDFileSystem.h" 00017 00018 SDFileSystem sd(D11, D12, D13, D9, "sd"); // the pinout on the mbed Cool Components workshop board 00019 00020 int main() { 00021 FILE *fp = fopen("/sd/sdtest.txt", "w"); 00022 fprintf(fp, "HelloWorld!"); 00023 fclose(fp); 00024 free(fp); 00025 }
Generated on Fri Jul 15 2022 02:23:03 by
 1.7.2
 1.7.2