summaryrefslogtreecommitdiff
path: root/lpo/MyOBD.h
diff options
context:
space:
mode:
Diffstat (limited to 'lpo/MyOBD.h')
-rw-r--r--lpo/MyOBD.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lpo/MyOBD.h b/lpo/MyOBD.h
index ea143be..f2124c3 100644
--- a/lpo/MyOBD.h
+++ b/lpo/MyOBD.h
@@ -1,8 +1,20 @@
#ifndef __MYOBD_H
#define __MYOBD_H
#include <OBD.h>
+
+#include <MyLCD.h>
+extern MyLCD lcd;
+
class MyOBD : public COBDI2C {
public:
+ void write(const char* s) {
+ lcd.print("<<<"); lcd.println(s);
+ COBDI2C::write(s);
+ }
+ byte receive(char* buffer, byte bufsize, int timeout) {
+ byte res = COBDI2C::receive(buffer,bufsize, timeout);
+ lcd.print(">>>"); lcd.println(buffer);
+ }
/* Fake OBD for testing
int i;
MyOBD() {