     float ampReadings[4];
     float tempReadings[3];
 
-    readVoltage(voltReadings[]);
+    //readVoltage(voltReadings);
 
     
 }//standby
 
+void error(char mess[]){
+    // TO DO
+    Serial.print("Shit");
+}//error
+
+void printArray(float array[], int arraySize){
+    for(int i=0; i<arraySize; i++){
+        Serial.println(array[i]);
+    }
+}
+
+void test(){
+
+    float *voltages, *amps, *temps;
+    char *time;
+    voltages = readVoltage();
+    amps = readAmp();
+    temps = readTemp();
+    time = readTime();
+    printArray(voltages, 4);
+    printArray(amps, 4);
+    printArray(temps, 3);
+    Serial.println(time);
+    int timeAdd = time;
+    Serial.println(timeAdd);
+    Serial.println(filename);
+    int fileAdd = filename;
+    Serial.println(fileAdd);
+    newFile();
+    Serial.println(filename);
+    fileAdd = filename;
+    Serial.println(fileAdd);
+    delay(1000);
+
+    return;
+}
+
 void setup() {
 
     Serial.begin(9600);
     Serial.println();
 
+    pinMode(RED_LED_PIN, OUTPUT);
+    pinMode(GREEN_LED_PIN, OUTPUT);
+
+#if !(TEST)
     // initialize the SD card
     Serial.print("Initializing SD card...");
     // make sure that the default chip select pin is set to


void newFile(){

    char newName[] = "SHIT";
    strcat(newName, ".csv");
    
    TGC_logfile.close();
    TGC_logfile = SD.open(newName, FILE_WRITE);


    // connect to RTC
    Wire.begin();  
    if (!RTC.begin()) {
        TGC_logfile.println("RTC failed");
    Serial.println("RTC failed");
    }
#endif

}//setup

void loop() {
    // TO DO
    test();
}
