|
#include <epd.h>
|
|
|
|
const int led = 13;
|
|
|
|
void setup() {
|
|
/*
|
|
user led init
|
|
*/
|
|
pinMode(led, OUTPUT);
|
|
digitalWrite(led, LOW);
|
|
|
|
epd_init();
|
|
epd_wakeup();
|
|
epd_set_memory(MEM_NAND);
|
|
epd_screen_rotation(EPD_INVERSION);
|
|
}
|
|
|
|
void loop() {
|
|
|
|
// put your main code here, to run repeatedly:
|
|
epd_clear();
|
|
epd_disp_bitmap("PIC7.BMP", 0, 0);
|
|
epd_udpate();
|
|
|
|
epd_enter_stopmode();
|
|
|
|
char flag = 0;
|
|
while (1)
|
|
{
|
|
if(flag)
|
|
{
|
|
flag = 0;
|
|
digitalWrite(led, LOW);
|
|
delay(1000);
|
|
}
|
|
else
|
|
{
|
|
flag = 1;
|
|
digitalWrite(led, HIGH);
|
|
delay(3000);
|
|
}
|
|
}
|
|
|
|
}
|