add EPD 2.9 inch module support

This commit is contained in:
YXZhu
2022-11-27 13:38:17 +08:00
parent 8100b7dd8f
commit fbf75475bc
38 changed files with 6231 additions and 5572 deletions
@@ -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;