#include <RTClib.h>
#include <SD.h>
#include <SPI.h>
RTC_DS1307 rtc;
File myFile;
#define CSpin 10
int filenum = 0;
#define resetPin 3
#define startstopPin 2
void setup() {
Serial.begin(9600);
pinMode(CSpin, OUTPUT);
pinMode(resetPin, INPUT_PULLUP);
pinMode(startstopPin, INPUT_PULLUP);
// put your setup code here, to run once:
myFile = SD.open("test.txt", FILE_WRITE);
myFile.println("testing 1, 2, 3.");
myFile.close();
}
void loop() {
// put your main code here, to run repeatedly:
}