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.cpp	Sun Apr 27 19:13:35 2014 +0000
@@ -0,0 +1,19 @@
+#include "PidValue.h"
+#include "DebugPrint.h"
+
+PidValue::PidValue(const char* name, const char* unit)
+: m_value(0)
+, m_unit(unit)
+, m_name(name)
+{
+}
+
+void PidValue::print()
+{
+    pc.printf("%d %s\r\n", m_value, m_unit);
+}
+
+const char* PidValue::getName()
+{
+    return m_name;
+}
\ No newline at end of file