![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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
PidValue.h
- Committer:
- chrta
- Date:
- 2014-05-01
- Revision:
- 6:506b703a8acf
- Parent:
- 5:0b229ba8ede5
File content as of revision 6:506b703a8acf:
#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(); const char* getUnit(); unsigned int getValue(); protected: unsigned int m_value; const char* m_unit; const char* m_name; }; #endif //PIDVALUE_H