epd2in13_V3.ino 649 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #include <SPI.h>
  2. #include "epd2in13_V3.h"
  3. #include "imagedata.h"
  4. Epd epd;
  5. void setup()
  6. {
  7. // put your setup code here, to run once:
  8. Serial.begin(115200);
  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.Init(PART);
  21. epd.ClearPart();
  22. }
  23. epd.Init(FULL);
  24. Serial.println("e-Paper clear and sleep");
  25. epd.Clear();
  26. epd.Sleep();
  27. }
  28. void loop()
  29. {
  30. }