first commit
This commit is contained in:
commit
9005e49d82
3071 changed files with 1941927 additions and 0 deletions
36
e-Paper/Arduino/epd2in13_V2/epd2in13_V2.ino
Normal file
36
e-Paper/Arduino/epd2in13_V2/epd2in13_V2.ino
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
#include <SPI.h>
|
||||
#include "epd2in13_V2.h"
|
||||
#include "imagedata.h"
|
||||
|
||||
Epd epd;
|
||||
|
||||
void setup()
|
||||
{
|
||||
// put your setup code here, to run once:
|
||||
Serial.begin(9600);
|
||||
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.ClearPart();
|
||||
}
|
||||
|
||||
epd.Init(FULL);
|
||||
Serial.println("e-Paper clear and sleep");
|
||||
epd.Clear();
|
||||
epd.Sleep();
|
||||
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue