2020.05.22
This commit is contained in:
parent
8973995e53
commit
853a3a4632
224 changed files with 26246 additions and 3145 deletions
|
|
@ -37,29 +37,45 @@
|
|||
#define EPD_WIDTH 200
|
||||
#define EPD_HEIGHT 200
|
||||
|
||||
class Epd : EpdIf {
|
||||
class Epd : EpdIf
|
||||
{
|
||||
public:
|
||||
unsigned long width;
|
||||
unsigned long height;
|
||||
unsigned long width;
|
||||
unsigned long height;
|
||||
|
||||
Epd();
|
||||
~Epd();
|
||||
int Init(void);
|
||||
void SendCommand(unsigned char command);
|
||||
void SendData(unsigned char data);
|
||||
void WaitUntilIdle(void);
|
||||
void Reset(void);
|
||||
void Clear(void);
|
||||
void Display(const unsigned char* frame_buffer);
|
||||
void DisplayPartBaseImage(const unsigned char* frame_buffer);
|
||||
void DisplayPart(const unsigned char* frame_buffer);
|
||||
|
||||
void Sleep(void);
|
||||
Epd();
|
||||
~Epd();
|
||||
// int Init(void);
|
||||
int LDirInit(void);
|
||||
int HDirInit(void);
|
||||
void SendCommand(unsigned char command);
|
||||
void SendData(unsigned char data);
|
||||
void WaitUntilIdle(void);
|
||||
void Reset(void);
|
||||
void Clear(void);
|
||||
void Display(const unsigned char* frame_buffer);
|
||||
void DisplayPartBaseImage(const unsigned char* frame_buffer);
|
||||
void DisplayPartBaseWhiteImage(void);
|
||||
void DisplayPart(const unsigned char* frame_buffer);
|
||||
void SetFrameMemory(
|
||||
const unsigned char* image_buffer,
|
||||
int x,
|
||||
int y,
|
||||
int image_width,
|
||||
int image_height
|
||||
);
|
||||
void DisplayFrame(void);
|
||||
void DisplayPartFrame(void);
|
||||
|
||||
void Sleep(void);
|
||||
private:
|
||||
unsigned int reset_pin;
|
||||
unsigned int dc_pin;
|
||||
unsigned int cs_pin;
|
||||
unsigned int busy_pin;
|
||||
unsigned int reset_pin;
|
||||
unsigned int dc_pin;
|
||||
unsigned int cs_pin;
|
||||
unsigned int busy_pin;
|
||||
|
||||
void SetMemoryArea(int x_start, int y_start, int x_end, int y_end);
|
||||
void SetMemoryPointer(int x, int y);
|
||||
};
|
||||
|
||||
#endif /* EPD1IN54B_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue