diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-03-18 22:37:18 +0800 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-03-18 22:37:18 +0800 |
commit | be625d6ca4cf59fb4f4d0e2fe79d798a529b8c3d (patch) | |
tree | 5381012b46ad39362d5c08dbd7c82736eee73a6f /pbox/config.h | |
parent | 6aaf937f2c17d713966b3b3d647fa35980a3b8ce (diff) | |
download | 2021-arduino-obd-be625d6ca4cf59fb4f4d0e2fe79d798a529b8c3d.tar.gz 2021-arduino-obd-be625d6ca4cf59fb4f4d0e2fe79d798a529b8c3d.tar.bz2 2021-arduino-obd-be625d6ca4cf59fb4f4d0e2fe79d798a529b8c3d.zip |
Cleanup
Diffstat (limited to 'pbox/config.h')
-rw-r--r-- | pbox/config.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pbox/config.h b/pbox/config.h new file mode 100644 index 0000000..bb026a4 --- /dev/null +++ b/pbox/config.h @@ -0,0 +1,50 @@ +#ifndef CONFIG_H_INCLUDED +#define CONFIG_H_INCLUDED + +/************************************** +* Data logging/streaming out +**************************************/ +#define ENABLE_DATA_OUT 0 +#define ENABLE_DATA_LOG 1 +#define USE_SOFTSERIAL 0 +//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 OBD_MIN_INTERVAL 50 /* ms */ +#define GPS_DATA_TIMEOUT 2000 /* ms */ +//#define DEBUG Serial +#define DEBUG_BAUDRATE 9600 + +#endif // CONFIG_H_INCLUDED |