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_Canvas.h (1132B)

      1 #include "../Arduino_DataBus.h"
      2 #if !defined(LITTLE_FOOT_PRINT)
      3 
      4 #ifndef _ARDUINO_CANVAS_H_
      5 #define _ARDUINO_CANVAS_H_
      6 
      7 #include "../Arduino_GFX.h"
      8 
      9 class Arduino_Canvas : public Arduino_GFX
     10 {
     11 public:
     12   Arduino_Canvas(int16_t w, int16_t h, Arduino_G *output, int16_t output_x = 0, int16_t output_y = 0);
     13 
     14   bool begin(int32_t speed = GFX_NOT_DEFINED) override;
     15   void writePixelPreclipped(int16_t x, int16_t y, uint16_t color) override;
     16   void writeFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color) override;
     17   void writeFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color) override;
     18   void writeFillRectPreclipped(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color) override;
     19   void draw16bitRGBBitmap(int16_t x, int16_t y, uint16_t *bitmap, int16_t w, int16_t h) override;
     20   void draw16bitBeRGBBitmap(int16_t x, int16_t y, uint16_t *bitmap, int16_t w, int16_t h) override;
     21   void flush(void) override;
     22 
     23   uint16_t *getFramebuffer();
     24 
     25 protected:
     26   uint16_t *_framebuffer;
     27   Arduino_G *_output;
     28   int16_t _output_x, _output_y;
     29 
     30 private:
     31 };
     32 
     33 #endif // _ARDUINO_CANVAS_H_
     34 
     35 #endif // !defined(LITTLE_FOOT_PRINT)