mirror of
https://github.com/WeActStudio/WeActStudio.EpaperModule.git
synced 2026-08-16 13:13:45 +02:00
add EPD 2.9 inch module support
This commit is contained in:
@@ -8,8 +8,22 @@ extern "C"
|
||||
|
||||
#include "ch32v10x.h"
|
||||
|
||||
//#define EPD_29
|
||||
//#define EPD_213
|
||||
|
||||
#if (!defined EPD_29) && (!defined EPD_213)
|
||||
#error EPD Type Undefine
|
||||
#endif
|
||||
|
||||
#ifdef EPD_29
|
||||
#define EPD_W 128
|
||||
#define EPD_H 296
|
||||
#endif
|
||||
|
||||
#ifdef EPD_213
|
||||
#define EPD_W 122
|
||||
#define EPD_H 250
|
||||
#endif
|
||||
|
||||
#define EPD_OK 0
|
||||
#define EPD_ERROR 1
|
||||
@@ -31,6 +45,7 @@ extern "C"
|
||||
#define EPD_DEEPSLEEP_MODE1 (0x01)
|
||||
#define EPD_DEEPSLEEP_MODE2 (0x03)
|
||||
|
||||
#define EPD_W_BUFF_SIZE ((EPD_W % 8 == 0) ? (EPD_W / 8) : (EPD_W / 8 + 1))
|
||||
typedef struct
|
||||
{
|
||||
uint8_t *Image;
|
||||
|
||||
Reference in New Issue
Block a user