update 2.9d&4.2, fix 5.65f&2.66b

This commit is contained in:
SSYYL 2021-03-18 17:33:33 +08:00
commit 2613454540
60 changed files with 805 additions and 328 deletions

View file

@ -29,7 +29,7 @@
#
******************************************************************************/
#include "EPD_5in65f.h"
#include "stdlib.h"
/******************************************************************************
function:
@ -103,10 +103,6 @@ void EPD_5IN65F_Init(void)
EPD_5IN65F_SendData(0x00);
EPD_5IN65F_SendData(0x23);
EPD_5IN65F_SendData(0x23);
EPD_5IN65F_SendCommand(0x82);
EPD_5IN65F_SendData(0x1d);
EPD_5IN65F_SendCommand(0x03);
EPD_5IN65F_SendData(0x00);
EPD_5IN65F_SendCommand(0x06);
@ -114,8 +110,8 @@ void EPD_5IN65F_Init(void)
EPD_5IN65F_SendData(0xC7);
EPD_5IN65F_SendData(0x1D);
EPD_5IN65F_SendCommand(0x30);
EPD_5IN65F_SendData(0x3C);
EPD_5IN65F_SendCommand(0x40);
EPD_5IN65F_SendData(0x39);
EPD_5IN65F_SendCommand(0x41);
EPD_5IN65F_SendData(0x00);
EPD_5IN65F_SendCommand(0x50);
EPD_5IN65F_SendData(0x37);
@ -175,12 +171,14 @@ void EPD_5IN65F_Display(const UBYTE *image)
for(i=0; i<EPD_5IN65F_HEIGHT; i++) {
for(j=0; j<EPD_5IN65F_WIDTH/2; j++) {
EPD_5IN65F_SendData(image[j+((EPD_5IN65F_WIDTH/2)*i)]);
// printf("0x%x, ", image[j+((EPD_5IN65F_WIDTH/2)*i)]);
// k++;
// if(k == 16) {
// printf("\n");
// k = 0;
// }
/* print image to array
printf("0x%x, ", image[j+((EPD_5IN65F_WIDTH/2)*i)]);
k++;
if(k == 16) {
printf("\n");
k = 0;
}
*/
}
}
EPD_5IN65F_SendCommand(0x04);//0x04