Add 4.37inch e-Paper (G) STM32 program and fix some bugs.

This commit is contained in:
SSYYL 2022-08-16 16:59:55 +08:00
commit 77accf11dd
32 changed files with 4453 additions and 1186 deletions

View file

@ -188,9 +188,7 @@ void EPD_1IN64G_Clear(UBYTE color)
EPD_1IN64G_SendCommand(0x10);
for (UWORD j = 0; j < Height; j++) {
for (UWORD i = 0; i < Width; i++) {
for(UBYTE k = 0; k < 4; k++) {
EPD_1IN64G_SendData(color);
}
EPD_1IN64G_SendData((color << 6) | (color << 4) | (color << 2) | color);
}
}
@ -222,6 +220,10 @@ void EPD_1IN64G_Display(UBYTE *Image)
EPD_1IN64G_SendData(Image[i + j * Width]);
}
}
EPD_1IN64G_SendCommand(0x68);
EPD_1IN64G_SendData(0x00);
EPD_1IN64G_TurnOnDisplay();
}