summaryrefslogtreecommitdiff
path: root/lpo/lpo.ino
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2021-06-13 13:21:21 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2021-06-13 13:21:21 +0200
commit0fba6d59eb011c6254ba67e51462205eadad007a (patch)
tree40a7605914c8566d44c45458a4c680984624aa70 /lpo/lpo.ino
parent0282f200a3e0236f5baca9d3fd9db2fb2b66c5e6 (diff)
download2021-arduino-obd-master.tar.gz
2021-arduino-obd-master.tar.bz2
2021-arduino-obd-master.zip
MyOBD : make debug runtime-controllable, lpo.ino: wait(20s) before readPID loopHEADmaster
Diffstat (limited to 'lpo/lpo.ino')
-rw-r--r--lpo/lpo.ino10
1 files changed, 7 insertions, 3 deletions
diff --git a/lpo/lpo.ino b/lpo/lpo.ino
index b85de2b..5016aec 100644
--- a/lpo/lpo.ino
+++ b/lpo/lpo.ino
@@ -10,11 +10,15 @@ MyOBD obd;
void setup()
{
lcd.begin();
+ obd.debug=1;
lcd.println("obd.begin()");
obd.begin();
reconnect();
showDTC();
- while(1); // Freeze exec here for now
+
+ delay(20*1000); // Freeze for 20 seconds before displaying real-time PID values
+ obd.debug=0;
+ lcd.begin();
initScreen();
}
@@ -38,9 +42,9 @@ void showDTC() {
} else {
for (c=0; c<count; c++) {
sprintf(buf, "P%04u ", codes[c]);
- lcd.print(buf);
+ lcd.println(buf);
}
- lcd.println();
+ //lcd.println();
}
}