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_TFT_18bit.h (2226B)

      1 /*
      2  * start rewrite from:
      3  * https://github.com/adafruit/Adafruit-GFX-Library.git
      4  */
      5 #ifndef _ARDUINO_TFT_18BIT_H_
      6 #define _ARDUINO_TFT_18BIT_H_
      7 
      8 #include "Arduino_DataBus.h"
      9 #include "Arduino_GFX.h"
     10 #include "Arduino_TFT.h"
     11 
     12 class Arduino_TFT_18bit : public Arduino_TFT
     13 {
     14 public:
     15   Arduino_TFT_18bit(Arduino_DataBus *bus, int8_t rst, uint8_t r, bool ips, int16_t w, int16_t h, uint8_t col_offset1, uint8_t row_offset1, uint8_t col_offset2, uint8_t row_offset2);
     16 
     17   void writeColor(uint16_t color) override;
     18   void writePixelPreclipped(int16_t x, int16_t y, uint16_t color) override;
     19   void writeRepeat(uint16_t color, uint32_t len) override;
     20 
     21 // TFT optimization code, too big for ATMEL family
     22 #if !defined(LITTLE_FOOT_PRINT)
     23   void writePixels(uint16_t *data, uint32_t len) override;
     24   void writeIndexedPixels(uint8_t *bitmap, uint16_t *color_index, uint32_t len) override;
     25   void writeIndexedPixelsDouble(uint8_t *bitmap, uint16_t *color_index, uint32_t len) override;
     26 
     27   void drawBitmap(int16_t x, int16_t y, const uint8_t bitmap[], int16_t w, int16_t h, uint16_t color, uint16_t bg) override;
     28   void drawBitmap(int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h, uint16_t color, uint16_t bg) override;
     29   void drawGrayscaleBitmap(int16_t x, int16_t y, const uint8_t bitmap[], int16_t w, int16_t h) override;
     30   void drawGrayscaleBitmap(int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h) override;
     31   void drawIndexedBitmap(int16_t x, int16_t y, uint8_t *bitmap, uint16_t *color_index, int16_t w, int16_t h) override;
     32   void draw16bitRGBBitmap(int16_t x, int16_t y, uint16_t *bitmap, uint8_t *mask, int16_t w, int16_t h) override;
     33   void draw16bitRGBBitmap(int16_t x, int16_t y, const uint16_t bitmap[], int16_t w, int16_t h) override;
     34   void draw16bitRGBBitmap(int16_t x, int16_t y, uint16_t *bitmap, int16_t w, int16_t h) override;
     35   void draw16bitBeRGBBitmap(int16_t x, int16_t y, uint16_t *bitmap, int16_t w, int16_t h) override;
     36   void draw24bitRGBBitmap(int16_t x, int16_t y, const uint8_t bitmap[], int16_t w, int16_t h) override;
     37   void draw24bitRGBBitmap(int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h) override;
     38 #endif // !defined(LITTLE_FOOT_PRINT)
     39 
     40 protected:
     41 private:
     42 };
     43 
     44 #endif