diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-11-07 22:29:31 +1100 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-11-07 22:29:31 +1100 |
commit | 91c65f3d117d942b1b4f8fd4bcc77683c3ef71c8 (patch) | |
tree | 33b1b866f95b6df03f800dc30812c285038debca /obdlogger/config.h | |
parent | cabaa89f83d4e6124728f005c50fb0da8cbd0935 (diff) | |
download | 2021-arduino-obd-91c65f3d117d942b1b4f8fd4bcc77683c3ef71c8.tar.gz 2021-arduino-obd-91c65f3d117d942b1b4f8fd4bcc77683c3ef71c8.tar.bz2 2021-arduino-obd-91c65f3d117d942b1b4f8fd4bcc77683c3ef71c8.zip |
update OBD logger,
config.h added for storing configurations
default in acceleration timing mode
Diffstat (limited to 'obdlogger/config.h')
-rw-r--r-- | obdlogger/config.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/obdlogger/config.h b/obdlogger/config.h new file mode 100644 index 0000000..e00362c --- /dev/null +++ b/obdlogger/config.h @@ -0,0 +1,47 @@ +#ifndef CONFIG_H_INCLUDED +#define CONFIG_H_INCLUDED + +/************************************** +* Data logging/streaming out +**************************************/ +#define ENABLE_DATA_OUT 0 +#define ENABLE_DATA_LOG 1 +//this defines the format of log file +#define LOG_FORMAT FORMAT_CSV + +/************************************** +* Default working mode +**************************************/ +#define MODE_DEFAULT MODE_TIMER /* MODE_LOGGER */ +#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_SSD1306 lcd; +//LCD_ZTOLED lcd; + +/************************************** +* Other options +**************************************/ +#define USE_MPU6050 0 +#define OBD_MIN_INTERVAL 50 /* ms */ +#define GPS_DATA_TIMEOUT 2000 /* ms */ +//#define DEBUG Serial + +#endif // CONFIG_H_INCLUDED |