first commit
This commit is contained in:
commit
9005e49d82
3071 changed files with 1941927 additions and 0 deletions
44
e-Paper/Arduino/epd1in02d/epd1in02d.ino
Normal file
44
e-Paper/Arduino/epd1in02d/epd1in02d.ino
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
#include "GUI_Paint.h"
|
||||
#include "DEV_Config.h"
|
||||
#include "EPD_1in02d.h"
|
||||
#include "fonts.h"
|
||||
#include "imagedata.h"
|
||||
unsigned char image_temp[1280]={0};
|
||||
Paint paith(image_temp, 80, 128);
|
||||
void setup() {
|
||||
Config_Init();
|
||||
if(EPD_Init() != 0) {
|
||||
Serial.print("e-Paper init failed\r\n");
|
||||
}
|
||||
Serial.print("1.02inch e-Paper Module1\r\n");
|
||||
EPD_Clear();
|
||||
DEV_Delay_ms(500);
|
||||
|
||||
|
||||
Serial.print("Drawing:BlackImage\r\n");
|
||||
paith.DrawStringAt(13, 0, "1.02inch", &Font12, 0xff);
|
||||
paith.DrawStringAt(22, 13, "epd", &Font12, 0xff);
|
||||
paith.DrawStringAt(10, 30, "ABC123", &Font16, 0xff);
|
||||
|
||||
paith.DrawLine(10, 50, 60, 100, 0xff );
|
||||
paith.DrawLine(10, 100, 60, 50, 0xff);
|
||||
paith.DrawRectangle(10, 50, 60, 100, 0xff);
|
||||
paith.DrawFilledCircle(35, 75, 20, 0xff);
|
||||
|
||||
Serial.print("EPD_Display\r\n");
|
||||
EPD_Display(image_temp);
|
||||
DEV_Delay_ms(2000);
|
||||
|
||||
|
||||
EPD_Display_Image(IMAGE_DATA);
|
||||
DEV_Delay_ms(500);
|
||||
EPD_Clear();
|
||||
|
||||
EPD_Sleep();
|
||||
Serial.print("Goto Sleep mode...\r\n");
|
||||
DEV_Delay_ms(2000);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue