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
00001 #ifndef DISPLAY_H 00002 #define DISPLAY_H 00003 00004 #include "mbed.h" 00005 00006 #include "Adafruit_SSD1306.h" 00007 00008 class Display 00009 { 00010 public: 00011 00012 Display(); 00013 00014 void clear(); 00015 00016 void display(); 00017 00018 void sendTo(const char* text); 00019 00020 private: 00021 // an SPI sub-class that provides a constructed default format and frequency 00022 class SPI2 : public SPI 00023 { 00024 public: 00025 SPI2(PinName mosi, PinName miso, PinName clk); 00026 }; 00027 00028 SPI2 m_spi; 00029 Adafruit_SSD1306 m_oled; 00030 }; 00031 #endif //DISPLAY_H
Generated on Tue Jul 12 2022 21:25:01 by 1.7.2