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

Committer:
chrta
Date:
Thu May 01 09:29:29 2014 +0000
Revision:
6:506b703a8acf
Parent:
5:0b229ba8ede5
Changes for display.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chrta 5:0b229ba8ede5 1 #ifndef PIDVALUE_H
chrta 5:0b229ba8ede5 2 #define PIDVALUE_H
chrta 5:0b229ba8ede5 3
chrta 5:0b229ba8ede5 4 #include <stdint.h>
chrta 5:0b229ba8ede5 5
chrta 5:0b229ba8ede5 6 class PidValue
chrta 5:0b229ba8ede5 7 {
chrta 5:0b229ba8ede5 8 public:
chrta 5:0b229ba8ede5 9 PidValue(const char* name, const char* unit);
chrta 5:0b229ba8ede5 10 virtual bool decode(const uint8_t* data, uint16_t length) = 0;
chrta 5:0b229ba8ede5 11 void print();
chrta 5:0b229ba8ede5 12 const char* getName();
chrta 6:506b703a8acf 13 const char* getUnit();
chrta 6:506b703a8acf 14 unsigned int getValue();
chrta 5:0b229ba8ede5 15 protected:
chrta 5:0b229ba8ede5 16 unsigned int m_value;
chrta 5:0b229ba8ede5 17 const char* m_unit;
chrta 5:0b229ba8ede5 18 const char* m_name;
chrta 5:0b229ba8ede5 19 };
chrta 5:0b229ba8ede5 20
chrta 5:0b229ba8ede5 21 #endif //PIDVALUE_H