2
0

epd2in13_V2.ino 630 B

123456789101112131415161718192021222324252627282930313233343536
  1. #include <SPI.h>
  2. #include "epd2in13_V2.h"
  3. #include "imagedata.h"
  4. Epd epd;
  5. void setup()
  6. {
  7. // put your setup code here, to run once:
  8. Serial.begin(9600);
  9. Serial.println("epd FULL");
  10. epd.Init(FULL);
  11. epd.Display(IMAGE_DATA);
  12. Serial.println("epd PART");
  13. epd.DisplayPartBaseImage(IMAGE_DATA);
  14. char i = 0;
  15. for (i = 0; i < 10; i++) {
  16. Serial.println("e-Paper PART IMAGE_DATA");
  17. epd.Init(PART);
  18. epd.DisplayPart(IMAGE_DATA);
  19. Serial.println("e-Paper PART Clear");
  20. epd.ClearPart();
  21. }
  22. epd.Init(FULL);
  23. Serial.println("e-Paper clear and sleep");
  24. epd.Clear();
  25. epd.Sleep();
  26. }
  27. void loop()
  28. {
  29. }