Misure su Sistemi Wireless / Mbed 2 deprecated STMNucleoF401RE_ExampleCode_04_SDcard_Fi

Dependencies:   SDFileSystem mbed

Fork of STMNucleoF401RE_ExampleCode_04_SDcard_Fi by 20161020-Corso Rapid Prototyping with STM32Nucleo

main.cpp

Committer:
STmdangelo
Date:
2016-10-19
Revision:
3:221bcfbe120b
Parent:
2:09d6c35ac28c

File content as of revision 3:221bcfbe120b:

/****************************************************
*            FAST PROTOTYPING WITH NUCLEO           *
* Example Code 04: SDcard                           *
* Author: Mauro D'Angelo                            *
* Organization: STMicroelectronics                  *  
*****************************************************/

#include "mbed.h"
#include "SDFileSystem.h"

SDFileSystem sd(D11, D12, D13, D4, "sd");// MOSI, MISO, SCK, CS

int main() {
    FILE *fd = fopen("/sd/mbed.txt","w");
    fprintf(fd,"Welcome SD!!\n");
    fclose(fd);
}

// mkdir("/sd/log", 0777);