add 2in13_V3 example code (Arduino)

This commit is contained in:
SSYYL 2021-11-01 16:50:26 +08:00
commit 9896ad819c
16 changed files with 10268 additions and 38 deletions

View file

@ -0,0 +1,37 @@
#include <SPI.h>
#include "epd2in13_V3.h"
#include "imagedata.h"
Epd epd;
void setup()
{
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("epd FULL");
epd.Init(FULL);
epd.Display(IMAGE_DATA);
Serial.println("epd PART");
epd.DisplayPartBaseImage(IMAGE_DATA);
char i = 0;
for (i = 0; i < 10; i++) {
Serial.println("e-Paper PART IMAGE_DATA");
epd.Init(PART);
epd.DisplayPart(IMAGE_DATA);
Serial.println("e-Paper PART Clear");
epd.Init(PART);
epd.ClearPart();
}
epd.Init(FULL);
Serial.println("e-Paper clear and sleep");
epd.Clear();
epd.Sleep();
}
void loop()
{
}