BitmapDisplay.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Display Library example for SPI e-paper panels from Dalian Good Display and boards from Waveshare.
  2. // Requires HW SPI and Adafruit_GFX. Caution: the e-paper panels require 3.3V supply AND data lines!
  3. //
  4. // Display Library based on Demo Example from Good Display: https://www.good-display.com/companyfile/32/
  5. //
  6. // Author: Jean-Marc Zingg
  7. //
  8. // Version: see library.properties
  9. //
  10. // Library: https://github.com/ZinggJM/GxEPD2
  11. //
  12. // Purpose: show uses of GxEPD2_GFX base class for references to a display instance
  13. //
  14. // BitmapDisplay shows the use of the display instance reference as a class member
  15. #ifndef _BitmapDisplay_H_
  16. #define _BitmapDisplay_H_
  17. #include "GxEPD2_GFX.h"
  18. class BitmapDisplay
  19. {
  20. private:
  21. GxEPD2_GFX& display;
  22. public:
  23. BitmapDisplay(GxEPD2_GFX& _display) : display(_display) {};
  24. void drawBitmaps();
  25. private:
  26. void drawBitmaps200x200();
  27. void drawBitmaps104x212();
  28. void drawBitmaps128x250();
  29. void drawBitmaps128x296();
  30. void drawBitmaps152x296();
  31. void drawBitmaps176x264();
  32. void drawBitmaps240x416();
  33. void drawBitmaps400x300();
  34. void drawBitmaps640x384();
  35. void drawBitmaps800x480();
  36. void drawBitmaps800x600();
  37. void drawBitmaps3c200x200();
  38. void drawBitmaps3c104x212();
  39. void drawBitmaps3c128x296();
  40. void drawBitmaps3c176x264();
  41. void drawBitmaps3c400x300();
  42. void drawBitmaps3c800x480();
  43. };
  44. #endif