Small project to display some OBD values from the Toyota GT86/ Subaru BRZ/ Scion FRS on an OLED display.

Dependencies:   Adafruit_GFX MODSERIAL mbed-rtos mbed

Revision:
5:0b229ba8ede5
Child:
6:506b703a8acf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PidValue.h	Sun Apr 27 19:13:35 2014 +0000
@@ -0,0 +1,19 @@
+#ifndef PIDVALUE_H
+#define PIDVALUE_H
+
+#include <stdint.h>
+
+class PidValue
+{
+public:
+    PidValue(const char* name, const char* unit);
+    virtual bool decode(const uint8_t* data, uint16_t length) = 0;
+    void print();
+    const char* getName();
+protected:    
+    unsigned int m_value;
+    const char* m_unit;
+    const char* m_name;
+};
+
+#endif //PIDVALUE_H
\ No newline at end of file