mirror of
https://github.com/una1veritas/mac-floppy-emu.git
synced 2024-06-16 14:29:28 +00:00
26 lines
570 B
Plaintext
Executable File
26 lines
570 B
Plaintext
Executable File
/*
|
|
* Sketch to compare size of SdFat V2 with Arduino SD library.
|
|
* See SD_Size.pde for Arduino SD sketch.
|
|
*/
|
|
#include <SdFat.h>
|
|
|
|
SdFat sd;
|
|
|
|
SdFile file;
|
|
//------------------------------------------------------------------------------
|
|
void setup() {
|
|
Serial.begin(9600);
|
|
|
|
if (!sd.init()) {
|
|
Serial.println("init failed");
|
|
return;
|
|
}
|
|
file.open("SIZE_TST.TXT", O_RDWR | O_CREAT | O_AT_END);
|
|
|
|
file.println("Hello");
|
|
|
|
file.close();
|
|
}
|
|
//------------------------------------------------------------------------------
|
|
void loop() {}
|