Reading Analog Ports and Saving in a micro SD CARD with the KL25z
Dependencies: SDFileSystem mbed
Fork of SDFileSystem_HelloWorld by
Diff: main.cpp
- Revision:
- 7:17ca3091939f
- Parent:
- 2:e4b38da7d1fc
- Child:
- 10:ae649a596123
diff -r e91aaa090d19 -r 17ca3091939f main.cpp --- a/main.cpp Fri Aug 01 15:01:20 2014 +0000 +++ b/main.cpp Thu Aug 07 16:46:14 2014 +0000 @@ -2,10 +2,13 @@ #include "SDFileSystem.h" DigitalIn button(p21, PullUp); -SDFileSystem sd(p5, p6, p7, p20, "sd", p22, SDFileSystem::SWITCH_NC, 6000000); +SDFileSystem sd(p5, p6, p7, p20, "sd", p22, SDFileSystem::SWITCH_NO, 20000000); int main() { + //Enable large frames for performance + sd.large_frames(true); + while(1) { //Print the start message printf("\nPress the button to perform tests: ");