summaryrefslogtreecommitdiff
path: root/obdlogger/obdlogger.ino
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2013-03-28 17:47:05 +0800
committerStanley Huang <stanleyhuangyc@gmail.com>2013-03-28 17:47:39 +0800
commit8f9abef3a85f45eb52cf6ac9a9887f7e601b94fb (patch)
tree4b91413e1765b0880bc41c9f062dba900f03e714 /obdlogger/obdlogger.ino
parent995219669f517d689b9c0b6c842285cc52ace354 (diff)
download2021-arduino-obd-8f9abef3a85f45eb52cf6ac9a9887f7e601b94fb.tar.gz
2021-arduino-obd-8f9abef3a85f45eb52cf6ac9a9887f7e601b94fb.tar.bz2
2021-arduino-obd-8f9abef3a85f45eb52cf6ac9a9887f7e601b94fb.zip
fix compiliation issue
Diffstat (limited to 'obdlogger/obdlogger.ino')
-rw-r--r--obdlogger/obdlogger.ino22
1 files changed, 12 insertions, 10 deletions
diff --git a/obdlogger/obdlogger.ino b/obdlogger/obdlogger.ino
index de9dd03..9970ec4 100644
--- a/obdlogger/obdlogger.ino
+++ b/obdlogger/obdlogger.ino
@@ -6,16 +6,16 @@
*************************************************************************/
#include <Arduino.h>
-#include <OBD.h>
-#include <SD.h>
#include <Wire.h>
-#include <Multilcd.h>
-#include <TinyGPS.h>
+#include "OBD.h"
+#include "SD.h"
+#include "Multilcd.h"
+#include "TinyGPS.h"
#include "MPU6050.h"
-#define DATASET_INTERVAL 1000 /* ms */
-#define SD_CS_PIN 10
-//#define SD_CS_PIN 4 // ethernet shield
+//#define SD_CS_PIN 4 // ethernet shield with SD
+#define SD_CS_PIN 7 // microduino
+//#define SD_CS_PIN 10 // SD breakout
// addition PIDs (non-OBD)
#define PID_GPS_DATETIME 0xF01
@@ -23,6 +23,8 @@
#define PID_GPS_ALTITUDE 0xF03
#define PID_GPS_SPEED 0xF04
+#define DATASET_INTERVAL 1000 /* ms */
+
// GPS logging can only be enabled when there is additional serial UART
#if defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega644p)
#define ENABLE_GPS
@@ -42,9 +44,9 @@ SdVolume volume;
File sdfile;
// LCD
-//LCD_OLED lcd; /* for I2C OLED module */
+LCD_OLED lcd; /* for I2C OLED module */
//LCD_PCD8544 lcd; /* for LCD4884 shield or Nokia 5100 screen module */
-LCD_1602 lcd; /* for LCD1602 shield */
+//LCD_1602 lcd; /* for LCD1602 shield */
static uint32_t filesize = 0;
static uint32_t datacount = 0;
@@ -161,7 +163,7 @@ void setup()
lcd.print("Initializing");
// init SD card
- pinMode(SD_CS_PIN, OUTPUT);
+ pinMode(SS, OUTPUT);
CheckSD();
// initiate OBD-II connection until success