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_ILI9488_3bit.h (1264B)
1 #include "Arduino_DataBus.h" 2 #if !defined(LITTLE_FOOT_PRINT) 3 4 #ifndef _ARDUINO_ILI9488_3BIT_H_ 5 #define _ARDUINO_ILI9488_3BIT_H_ 6 7 #include <Arduino.h> 8 #include <Print.h> 9 #include "Arduino_ILI9488.h" 10 11 class Arduino_ILI9488_3bit : public Arduino_G 12 { 13 public: 14 Arduino_ILI9488_3bit(Arduino_DataBus *bus, int8_t rst = GFX_NOT_DEFINED, uint8_t r = 0, bool ips = false); 15 16 bool begin(int32_t speed = GFX_NOT_DEFINED) override; 17 void drawBitmap(int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h, uint16_t color, uint16_t bg) override; 18 void drawIndexedBitmap(int16_t x, int16_t y, uint8_t *bitmap, uint16_t *color_index, int16_t w, int16_t h) override; 19 void draw3bitRGBBitmap(int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h) override; 20 void draw16bitRGBBitmap(int16_t x, int16_t y, uint16_t *bitmap, int16_t w, int16_t h) override; 21 void draw24bitRGBBitmap(int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h) override; 22 23 void invertDisplay(bool); 24 void displayOn(); 25 void displayOff(); 26 27 protected: 28 void writeAddrWindow(int16_t x, int16_t y, uint16_t w, uint16_t h); 29 30 Arduino_DataBus *_bus; 31 int8_t _rst; 32 uint8_t _rotation; 33 bool _ips; 34 35 private: 36 }; 37 38 #endif // _ARDUINO_ILI9488_3BIT_H_ 39 40 #endif // !defined(LITTLE_FOOT_PRINT)