summaryrefslogtreecommitdiff
path: root/libraries/OBD/examples/obd_i2c_test
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/OBD/examples/obd_i2c_test')
-rw-r--r--libraries/OBD/examples/obd_i2c_test/obd_i2c_test.ino6
1 files changed, 3 insertions, 3 deletions
diff --git a/libraries/OBD/examples/obd_i2c_test/obd_i2c_test.ino b/libraries/OBD/examples/obd_i2c_test/obd_i2c_test.ino
index d73e207..2a53a08 100644
--- a/libraries/OBD/examples/obd_i2c_test/obd_i2c_test.ino
+++ b/libraries/OBD/examples/obd_i2c_test/obd_i2c_test.ino
@@ -17,7 +17,7 @@ MPU6050 accelgyro;
void testOut()
{
- static const char PROGMEM cmds[][6] = {"ATZ\r", "ATL1\r", "ATRV\r", "0100\r", "010C\r", "0902\r"};
+ static const char PROGMEM cmds[][6] = {"ATZ\r", "ATL1\r", "ATH0\r", "ATRV\r", "0100\r", "010C\r", "0902\r"};
char buf[OBD_RECV_BUF_SIZE];
for (byte i = 0; i < sizeof(cmds) / sizeof(cmds[0]); i++) {
@@ -41,7 +41,7 @@ void testOut()
} else {
Serial.println("Timeout");
}
- delay(500);
+ delay(1000);
}
Serial.println();
}
@@ -94,7 +94,7 @@ void readPID()
void setup() {
delay(500);
Serial.begin(115200);
- Wire.begin();
+ obd.begin();
accelgyro.initialize();
readMEMS();