acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
Arduino_HX8347C.h (1080B)
1 /* 2 * start rewrite from: 3 * https://github.com/adafruit/Adafruit-GFX-Library.git 4 */ 5 #ifndef _ARDUINO_HX8347C_H_ 6 #define _ARDUINO_HX8347C_H_ 7 8 #include <Arduino.h> 9 #include <Print.h> 10 #include "../Arduino_GFX.h" 11 #include "../Arduino_TFT.h" 12 13 #define HX8347C_TFTWIDTH 240 ///< HX8347C max TFT width 14 #define HX8347C_TFTHEIGHT 320 ///< HX8347C max TFT height 15 16 #define HX8347C_RST_DELAY 120 17 18 class Arduino_HX8347C : public Arduino_TFT 19 { 20 public: 21 Arduino_HX8347C( 22 Arduino_DataBus *bus, int8_t rst = GFX_NOT_DEFINED, uint8_t r = 0, 23 bool ips = false, int16_t w = HX8347C_TFTWIDTH, int16_t h = HX8347C_TFTHEIGHT, 24 uint8_t col_offset1 = 0, uint8_t row_offset1 = 0, uint8_t col_offset2 = 0, uint8_t row_offset2 = 0); 25 26 bool begin(int32_t speed = GFX_NOT_DEFINED) override; 27 void writeAddrWindow(int16_t x, int16_t y, uint16_t w, uint16_t h) override; 28 void setRotation(uint8_t r) override; 29 void invertDisplay(bool) override; 30 void displayOn() override; 31 void displayOff() override; 32 33 protected: 34 void tftInit() override; 35 bool _invert = false; 36 37 private: 38 }; 39 40 #endif