diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2015-05-17 21:47:44 +1000 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2015-05-17 21:47:44 +1000 |
commit | 63681f79006f34eec80cfbd687f1b3cdbf830b88 (patch) | |
tree | 6100ddb58c719b6d41aaa28a67be940a2ea914ec /tester/config.h | |
parent | 706ecf21ea5a3cf5214ca36e79a41b69e00bccf0 (diff) | |
download | 2021-arduino-obd-63681f79006f34eec80cfbd687f1b3cdbf830b88.tar.gz 2021-arduino-obd-63681f79006f34eec80cfbd687f1b3cdbf830b88.tar.bz2 2021-arduino-obd-63681f79006f34eec80cfbd687f1b3cdbf830b88.zip |
Comprehensive tester sketch for OBD-II Adapter
Diffstat (limited to 'tester/config.h')
-rw-r--r-- | tester/config.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/tester/config.h b/tester/config.h new file mode 100644 index 0000000..f8ff4f5 --- /dev/null +++ b/tester/config.h @@ -0,0 +1,43 @@ +#ifndef CONFIG_H_INCLUDED +#define CONFIG_H_INCLUDED + +/************************************** +* Choose model of OBD-II Adapter +**************************************/ +// OBD_MODEL_I2C for I2C version +// OBD_MODEL_UART for UART version +#define OBD_MODEL OBD_MODEL_I2C +#define OBD_PROTOCOL PROTO_AUTO + +/************************************** +* Accelerometer & Gyro +**************************************/ +//#define USE_MPU6050 1 +#define USE_MPU9150 1 + +/************************************** +* LCD module (uncomment only one) +**************************************/ +LCD_ILI9341 lcd; /* 2.4" ILI9341 based SPI TFT LCD */ +//LCD_Null lcd; + +/************************************** +* Data streaming options +**************************************/ +// enable(1)/disable(0) data streaming +#define ENABLE_DATA_OUT 1 + +// uses software(1)/hardware(0) serial for data streaming +#define USE_SOFTSERIAL 0 + +// followings define the format of data streaming, enable one of them only +// FORMAT_BIN is required by Freematics OBD iOS App +//#define STREAM_FORMAT FORMAT_BIN +// FORMAT_CSV is for CSV based text output +//#define STREAM_FORMAT FORMAT_CSV +// FORMAT_LINE is for readable text output +#define STREAM_FORMAT FORMAT_TEXT + +#define STREAM_BAUDRATE 115200 + +#endif |