forked from ShiningMan123/EPD-ESP32-Arduino-IDE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EPD.h
49 lines (42 loc) · 1.44 KB
/
EPD.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef EPD_H_
#define EPD_H_
#include <Arduino.h>
class EPD
{
public:
void GPIO_set(void);
void driver_delay_us(unsigned int xus);
void driver_delay(unsigned long xms);
void DELAY_S(unsigned int delaytime);
void SPI_Delay(unsigned char xrate);
//EPD
void Epaper_READBUSY(void);
void SPI_Write(unsigned char value);
void Epaper_Write_Command(unsigned char cmd);
void Epaper_Write_Data(unsigned char datas);
void EPD_HW_Init(void); //Electronic paper initialization
void EPD_HW1_Init(void);
void EPD_Part_Init(void); //Local refresh initialization
void EPD_HW_Init_Fast(void);
void EPD_UC8253_init(void);
void EPD_UC8253_refresh(void);
void EPD_Part_Update(void);
void EPD_Update(void);
void EPD_Update_Fast(void);
void EPD_WhiteScreen_Black(void);
void EPD_WhiteScreen_White(void);
void EPD_DeepSleep(void);
void EPD_UC8253_sleep(void);
//Display
void EPD_UC8253_WhiteScreen_ALL(const unsigned char * datas);
void EPD_WhiteScreen_ALL(const unsigned char * datas);
void EPD_UC8253_WhiteScreen_White(void);
void EPD_WhiteScreen_ALL_fast(const unsigned char * datas);
void EPD_SetRAMValue_BaseMap(const unsigned char * datas);
void EPD_Dis_Part(unsigned int x_start,unsigned int y_start,const unsigned char * datas,unsigned int PART_COLUMN,unsigned int PART_LINE);
void EPD_SSD1680_DISPLAY_TEXT(void);
void EPD_UC8253_DISPLAY_TEXT(void);
private:
String num="";
};//注意这里的分号不要漏掉
#endif