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
display.h
- Committer:
- chrta
- Date:
- 2014-05-11
- Revision:
- 7:a19b63c0a0fa
- Parent:
- 6:506b703a8acf
File content as of revision 7:a19b63c0a0fa:
#ifndef DISPLAY_H #define DISPLAY_H #include "mbed.h" #include "Adafruit_SSD1306.h" class Display { public: Display(); void clear(); void display(); void sendTo(const char* text); private: // an SPI sub-class that provides a constructed default format and frequency class SPI2 : public SPI { public: SPI2(PinName mosi, PinName miso, PinName clk); }; SPI2 m_spi; Adafruit_SSD1306 m_oled; }; #endif //DISPLAY_H