 
 // SoftwareSerial 缓冲
 //#define _SS_MAX_RX_BUFF 128
+
+//SD card attached to SPI bus as follows:
+//#define SD_MOSI 11
+//#define SD_MISO 12
+//#define SD_CLK 13
+#define SD_CS 4
+
+File sdFile;
 
 boolean LIGHT_STATUS = 0;
 


  lcd.init();
  lcd.clear();
}

void loop(){ 

boolean readGPS() {
    String sub = readLine();
    if(sub.length()) {
      sdFile = SD.open("gps.txt", FILE_WRITE);
      sdFile.println(sub);
      sdFile.close();
      int split = sub.indexOf(',');    
      String field = sub.substring(0,split);
      if(field.equals(GPRMC)) {
