fix arduino,add readme

This commit is contained in:
hnwangkg-ezio 2019-12-31 18:33:57 +08:00
commit 8973995e53
327 changed files with 10032 additions and 10469 deletions

View file

@ -0,0 +1,32 @@
#include <SPI.h>
#include "epd1in54_V2.h"
#include "imagedata.h"
Epd epd;
void setup()
{
// put your setup code here, to run once:
Serial.begin(9600);
if (epd.Init() != 0) {
Serial.println("e-Paper init failed");
return;
}
Serial.println("e-Paper clear");
epd.Clear();
Serial.println("e-Paper show pic");
epd.Display(IMAGE_DATA);
Serial.println("e-Paper clear and sleep");
epd.Clear();
epd.Sleep();
}
void loop()
{
}