diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-03-08 13:00:40 +0800 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-03-08 13:00:40 +0800 |
commit | d00ab5523feeb46d6538f86f0c8982772054f79e (patch) | |
tree | fb3cda26e9a7d636a10a894953a73f205d93d1f0 /megalogger/config.h | |
parent | 61c4955f807004623e1daeb2ad5aadba99ef0ed6 (diff) | |
download | 2021-arduino-obd-d00ab5523feeb46d6538f86f0c8982772054f79e.tar.gz 2021-arduino-obd-d00ab5523feeb46d6538f86f0c8982772054f79e.tar.bz2 2021-arduino-obd-d00ab5523feeb46d6538f86f0c8982772054f79e.zip |
Add config option for OBD-II UART and I2C adapter
Diffstat (limited to 'megalogger/config.h')
-rw-r--r-- | megalogger/config.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/megalogger/config.h b/megalogger/config.h index fe8dde5..ac06fd6 100644 --- a/megalogger/config.h +++ b/megalogger/config.h @@ -1,8 +1,17 @@ #ifndef CONFIG_H_INCLUDED #define CONFIG_H_INCLUDED +// definitions +#define OBD_MODEL_UART 0 +#define OBD_MODEL_I2C 1 + // configurations /************************************** +* Choose model of OBD-II Adapter +**************************************/ +#define OBD_MODEL OBD_MODEL_UART + +/************************************** * Choose SD pin here **************************************/ //#define SD_CS_PIN 4 // ethernet shield @@ -19,6 +28,11 @@ //#define GPS_OPEN_BAUDRATE 4800 /* bps */ /************************************** +* Accelerometer & Gyro +**************************************/ +#define USE_MPU6050 1 + +/************************************** * Timeout/interval options **************************************/ //#define OBD_MIN_INTERVAL 200 /* ms */ |