Gestione accelerometro e scrittura su SD da F4

Dependencies:   SDFileSystem1 mbed

Fork of SDFileSystem_HelloWorld by mbed official

Committer:
NdA994
Date:
Mon Nov 20 22:18:10 2017 +0000
Revision:
2:f59bd5312559
Parent:
0:bdbd3d6fc5d5
Libreria per scrittura su Sd completa. Ho eseguito dei test per vedere se l'accelerometro reggeva la scrittura ed hanno dato esiti positivi.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 0:bdbd3d6fc5d5 1 #include "mbed.h"
NdA994 2:f59bd5312559 2 #include "setting.h"
NdA994 2:f59bd5312559 3 #include "lettoreSD.h"
NdA994 2:f59bd5312559 4
NdA994 2:f59bd5312559 5
mbed_official 0:bdbd3d6fc5d5 6 int main() {
NdA994 2:f59bd5312559 7 init();
NdA994 2:f59bd5312559 8 printf("Hello World!\n\r");
NdA994 2:f59bd5312559 9 initFile();
NdA994 2:f59bd5312559 10 aperturaFile();
NdA994 2:f59bd5312559 11 for(int i=0; i<1000; i++){
NdA994 2:f59bd5312559 12 stampaFile("A1xxxxoooooggggggeeeeeeerrrryyyyynhgrgr#2\r\n");
NdA994 2:f59bd5312559 13 }
NdA994 2:f59bd5312559 14 chiusuraFile();
NdA994 2:f59bd5312559 15 aperturaFile();
NdA994 2:f59bd5312559 16 for(int i=0; i<1000; i++){
NdA994 2:f59bd5312559 17 stampaFile("A1xxxxoooooggggggeeeeeeerrrryyyyynhgrgr#2\r\n");
NdA994 2:f59bd5312559 18 }
NdA994 2:f59bd5312559 19 chiusuraFile();
NdA994 2:f59bd5312559 20 printf("Goodbye World!\n\r");
mbed_official 0:bdbd3d6fc5d5 21
mbed_official 0:bdbd3d6fc5d5 22 }