TextDisplay.h 1.1 KB

123456789101112131415161718192021222324252627282930
  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: these e-papers require 3.3V supply AND data lines!
  3. //
  4. // Display Library based on Demo Example from Good Display: http://www.e-paper-display.com/download_list/downloadcategoryid=34&isMode=false.html
  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. // TextDisplay shows the use of the display instance reference as a function parameter
  15. #ifndef _TextDisplay_H_
  16. #define _TextDisplay_H_
  17. #include "GxEPD2_GFX.h"
  18. void helloWorld(GxEPD2_GFX& display);
  19. void helloWorldForDummies(GxEPD2_GFX& display);
  20. void helloFullScreenPartialMode(GxEPD2_GFX& display);
  21. void helloArduino(GxEPD2_GFX& display);
  22. void helloEpaper(GxEPD2_GFX& display);
  23. void helloValue(GxEPD2_GFX& display, double v, int digits);
  24. void showFont(GxEPD2_GFX& display, const char name[], const GFXfont* f);
  25. void drawFont(GxEPD2_GFX& display, const char name[], const GFXfont* f);
  26. #endif