Skip to content

Instantly share code, notes, and snippets.

@michaelsarduino
Created October 30, 2015 19:26
Show Gist options
  • Save michaelsarduino/b6dc561075d4e5b17fd8 to your computer and use it in GitHub Desktop.
Save michaelsarduino/b6dc561075d4e5b17fd8 to your computer and use it in GitHub Desktop.
#include <SPI.h>
#include <SD.h>
File Datei;
void setup() {
Serial.begin(9600);
if(!SD.begin(10))
{
Serial.println("Verbindung zur SD Karte fehlgeschlagen");
return;
}
Datei = SD.open("beispiel.txt", FILE_WRITE);
Datei.close();
}
void loop() {
// put your main code here, to run repeatedly:
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment