summaryrefslogtreecommitdiff
path: root/tester/config.h
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2017-02-13 23:33:49 +1100
committerStanley Huang <stanleyhuangyc@gmail.com>2017-02-13 23:33:49 +1100
commiteb076e45127ca5a59e6b158cc6c252de9a22a6a9 (patch)
treeb8d2c16584e10c37a7e7f6edb6933c610218a308 /tester/config.h
parent253dc7485e68d47c14d1a034b3c52169767f6020 (diff)
download2021-arduino-obd-eb076e45127ca5a59e6b158cc6c252de9a22a6a9.tar.gz
2021-arduino-obd-eb076e45127ca5a59e6b158cc6c252de9a22a6a9.tar.bz2
2021-arduino-obd-eb076e45127ca5a59e6b158cc6c252de9a22a6a9.zip
Test sketch for Arduino UNO with LCD
Diffstat (limited to 'tester/config.h')
-rw-r--r--tester/config.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/tester/config.h b/tester/config.h
index b87858a..47c9471 100644
--- a/tester/config.h
+++ b/tester/config.h
@@ -6,16 +6,10 @@
**************************************/
// OBD_MODEL_I2C for I2C version
// OBD_MODEL_UART for UART version
-#define OBD_MODEL OBD_MODEL_I2C
+#define OBD_MODEL OBD_MODEL_UART
#define OBD_PROTOCOL PROTO_AUTO
/**************************************
-* Accelerometer & Gyro
-**************************************/
-//#define USE_MPU6050 1
-//#define USE_MPU9150 1
-
-/**************************************
* LCD module (uncomment only one)
**************************************/
LCD_ILI9341 lcd; /* 2.2" ILI9341 based SPI TFT LCD */
@@ -29,11 +23,17 @@ LCD_ILI9341 lcd; /* 2.2" ILI9341 based SPI TFT LCD */
#define MEMS_BENCHMARK_TIME 3 /* seconds */
/**************************************
+* Accelerometer & Gyro
+**************************************/
+#define ACC_DATA_RATIO 172
+#define GYRO_DATA_RATIO 256
+
+/**************************************
* Data streaming options
**************************************/
// enable(1)/disable(0) data streaming
#define ENABLE_DATA_OUT 0
-#define ENABLE_DATA_LOG 1
+#define ENABLE_DATA_LOG 0
#define SD_CS_PIN 10
#define DELAY_AFTER_SENDING 10
@@ -42,8 +42,6 @@ LCD_ILI9341 lcd; /* 2.2" ILI9341 based SPI TFT LCD */
#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