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_3bit.h (694B)

      1 #include "../Arduino_DataBus.h"
      2 #if !defined(LITTLE_FOOT_PRINT)
      3 
      4 #ifndef _ARDUINO_CANVAS_3BIT_H_
      5 #define _ARDUINO_CANVAS_3BIT_H_
      6 
      7 #include "../Arduino_GFX.h"
      8 
      9 class Arduino_Canvas_3bit : public Arduino_GFX
     10 {
     11 public:
     12   Arduino_Canvas_3bit(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 flush(void) override;
     17 
     18   uint8_t *getFramebuffer();
     19 
     20 protected:
     21   uint8_t *_framebuffer;
     22   Arduino_G *_output;
     23   int16_t _output_x, _output_y;
     24 
     25 private:
     26 };
     27 
     28 #endif // _ARDUINO_CANVAS_3BIT_H_
     29 
     30 #endif // !defined(LITTLE_FOOT_PRINT)