add clear without refresh support

This commit is contained in:
Shuanglei Tao
2025-05-23 17:19:47 +08:00
parent 6e3f529912
commit 915ae9e69a
4 changed files with 6 additions and 6 deletions

View File

@@ -31,7 +31,7 @@
typedef struct
{
void (*init)(); /**< Initialize the e-Paper register */
void (*clear)(void); /**< Clear screen */
void (*clear)(bool refresh); /**< Clear screen */
void (*write_image)(uint8_t *black, uint8_t *color, uint16_t x, uint16_t y, uint16_t w, uint16_t h); /**< write image */
void (*refresh)(void); /**< Sends the image buffer in RAM to e-Paper and displays */
void (*sleep)(void); /**< Enter sleep mode */