2019.06.24
This commit is contained in:
parent
e945bfbbf3
commit
1f82e4a488
2990 changed files with 667957 additions and 444550 deletions
32
Arduino UNO/epd1in54_V2/epd1in54_V2.ino
Normal file
32
Arduino UNO/epd1in54_V2/epd1in54_V2.ino
Normal 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()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue