summaryrefslogtreecommitdiff
path: root/utilities/dataplayer/config.h
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2014-04-04 21:42:13 +0800
committerStanley Huang <stanleyhuangyc@gmail.com>2014-04-04 21:42:13 +0800
commit9a0730a5d9422441d3cfb168fb35772232a4e385 (patch)
treed363224a1a697facfa67c9f3eca88d8e0e0313bf /utilities/dataplayer/config.h
parentb8305124c8a95aea78073cb69e01db35c4d2dd9a (diff)
download2021-arduino-obd-9a0730a5d9422441d3cfb168fb35772232a4e385.tar.gz
2021-arduino-obd-9a0730a5d9422441d3cfb168fb35772232a4e385.tar.bz2
2021-arduino-obd-9a0730a5d9422441d3cfb168fb35772232a4e385.zip
add OBD-II data player
Diffstat (limited to 'utilities/dataplayer/config.h')
-rw-r--r--utilities/dataplayer/config.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/utilities/dataplayer/config.h b/utilities/dataplayer/config.h
new file mode 100644
index 0000000..8b166fe
--- /dev/null
+++ b/utilities/dataplayer/config.h
@@ -0,0 +1,55 @@
+#ifndef CONFIG_H_INCLUDED
+#define CONFIG_H_INCLUDED
+
+/**************************************
+* OBD-II options
+**************************************/
+#define OBD_MODEL OBD_MODEL_UART
+#define OBD_PROTOCOL 0 /* 0 for auto */
+
+/**************************************
+* Data logging/streaming out
+**************************************/
+#define ENABLE_DATA_OUT 1
+#define ENABLE_DATA_LOG 0
+#define USE_SOFTSERIAL 1
+//this defines the format of log file
+#define LOG_FORMAT FORMAT_CSV
+
+/**************************************
+* Default working mode
+**************************************/
+#define MODE_DEFAULT MODE_LOGGER /* MODE_LOGGER/MODE_TIMER */
+//#define MODE_SWITCH_PIN 8
+
+/**************************************
+* Choose SD pin here
+**************************************/
+//#define SD_CS_PIN SS // generic
+//#define SD_CS_PIN 4 // ethernet shield
+//#define SD_CS_PIN 7 // microduino
+#define SD_CS_PIN 10 // SD breakout
+
+/**************************************
+* Config GPS here
+**************************************/
+#define USE_GPS 0
+#define GPS_BAUDRATE 38400 /* bps */
+//#define GPS_OPEN_BAUDRATE 4800 /* bps */
+
+/**************************************
+* Choose LCD model here
+**************************************/
+LCD_ILI9341 lcd;
+//LCD_SSD1306 lcd;
+//LCD_Null lcd;
+
+/**************************************
+* Other options
+**************************************/
+#define USE_MPU6050 0
+#define GPS_DATA_TIMEOUT 2000 /* ms */
+//#define DEBUG Serial
+#define DEBUG_BAUDRATE 9600
+
+#endif // CONFIG_H_INCLUDED