You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- /*
- * Sketch to compare size of Arduino SD library with SdFat V2.
- * See SdFatSize.pde for SdFat sketch.
- */
- #include <SPI.h>
- #include <SD.h>
-
- File file;
- //------------------------------------------------------------------------------
- void setup() {
- Serial.begin(9600);
- while (!Serial) {} // wait for Leonardo
-
- if (!SD.begin()) {
- Serial.println("begin failed");
- return;
- }
- file = SD.open("TEST_SD.TXT", FILE_WRITE);
-
- file.println("Hello");
-
- file.close();
- Serial.println("Done");
- }
- //------------------------------------------------------------------------------
- void loop() {}
|