fix 2.9_V2 & 4.01f
This commit is contained in:
parent
49260094e6
commit
7c368a22af
65 changed files with 4803 additions and 335 deletions
File diff suppressed because one or more lines are too long
|
|
@ -1444,7 +1444,7 @@
|
|||
|
||||
<Group>
|
||||
<GroupName>Config</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ Package Vendor: Keil
|
|||
<h2>Collection of Component Files used:</h2>
|
||||
|
||||
* Component: ARM::CMSIS:CORE:5.2.0
|
||||
Build Time Elapsed: 00:00:03
|
||||
Build Time Elapsed: 00:00:02
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<title>Static Call Graph - [epd-demo\epd-demo.axf]</title></head>
|
||||
<body><HR>
|
||||
<H1>Static Call Graph for image epd-demo\epd-demo.axf</H1><HR>
|
||||
<BR><P>#<CALLGRAPH># ARM Linker, 5060750: Last Updated: Fri Dec 25 15:48:24 2020
|
||||
<BR><P>#<CALLGRAPH># ARM Linker, 5060750: Last Updated: Tue Jan 26 14:34:13 2021
|
||||
<BR><P>
|
||||
<H3>Maximum Stack Usage = 136 bytes + Unknown(Cycles, Untraceable Function Pointers)</H3><H3>
|
||||
Call chain for Maximum Stack Depth:</H3>
|
||||
|
|
|
|||
|
|
@ -550,6 +550,7 @@ Section Cross References
|
|||
epd_2in9_v2.o(.text) refers to stm32f1xx_hal_gpio.o(.text) for HAL_GPIO_ReadPin
|
||||
epd_2in9_v2.o(.text) refers to stm32f1xx_hal.o(.text) for HAL_Delay
|
||||
epd_2in9_v2.o(.text) refers to dev_config.o(.text) for DEV_SPI_WriteByte
|
||||
epd_2in9_v2.o(.text) refers to epd_2in9_v2.o(.data) for .data
|
||||
epd_2in9bc.o(.text) refers to printf3.o(i.__0printf$3) for __2printf
|
||||
epd_2in9bc.o(.text) refers to stm32f1xx_hal.o(.text) for HAL_Delay
|
||||
epd_2in9bc.o(.text) refers to stm32f1xx_hal_gpio.o(.text) for HAL_GPIO_ReadPin
|
||||
|
|
@ -1280,7 +1281,7 @@ Removing Unused input sections from the image.
|
|||
Removing epd_2in9_v2.o(.rev16_text), (4 bytes).
|
||||
Removing epd_2in9_v2.o(.revsh_text), (4 bytes).
|
||||
Removing epd_2in9_v2.o(.rrx_text), (6 bytes).
|
||||
Removing epd_2in9_v2.o(.text), (788 bytes).
|
||||
Removing epd_2in9_v2.o(.text), (908 bytes).
|
||||
Removing epd_2in9_v2.o(.data), (159 bytes).
|
||||
Removing epd_2in9bc.o(.rev16_text), (4 bytes).
|
||||
Removing epd_2in9bc.o(.revsh_text), (4 bytes).
|
||||
|
|
@ -1388,7 +1389,7 @@ Removing Unused input sections from the image.
|
|||
Removing epd_7in5b_v2.o(.rev16_text), (4 bytes).
|
||||
Removing epd_7in5b_v2.o(.revsh_text), (4 bytes).
|
||||
Removing epd_7in5b_v2.o(.rrx_text), (6 bytes).
|
||||
Removing epd_7in5b_v2.o(.text), (892 bytes).
|
||||
Removing epd_7in5b_v2.o(.text), (880 bytes).
|
||||
Removing epd_7in5b_hd.o(.rev16_text), (4 bytes).
|
||||
Removing epd_7in5b_hd.o(.revsh_text), (4 bytes).
|
||||
Removing epd_7in5b_hd.o(.rrx_text), (6 bytes).
|
||||
|
|
@ -1424,7 +1425,7 @@ Removing Unused input sections from the image.
|
|||
Removing cdrcmple.o(.text), (48 bytes).
|
||||
Removing depilogue.o(.text), (186 bytes).
|
||||
|
||||
450 unused section(s) (total 963099 bytes) removed from the image.
|
||||
450 unused section(s) (total 963207 bytes) removed from the image.
|
||||
|
||||
==============================================================================
|
||||
|
||||
|
|
|
|||
|
|
@ -111,6 +111,15 @@ void EPD_2IN9_V2_ReadBusy(void)
|
|||
Debug("e-Paper busy release\r\n");
|
||||
}
|
||||
|
||||
static void EPD_2IN9_V2_LUT(void)
|
||||
{
|
||||
UBYTE count;
|
||||
EPD_2IN9_V2_SendCommand(0x32);
|
||||
for(count=0; count<153; count++)
|
||||
EPD_2IN9_V2_SendData(_WF_PARTIAL_2IN9[count]);
|
||||
EPD_2IN9_V2_ReadBusy();
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
function : Turn On Display
|
||||
parameter:
|
||||
|
|
@ -126,7 +135,7 @@ static void EPD_2IN9_V2_TurnOnDisplay(void)
|
|||
static void EPD_2IN9_V2_TurnOnDisplay_Partial(void)
|
||||
{
|
||||
EPD_2IN9_V2_SendCommand(0x22); //Display Update Control
|
||||
EPD_2IN9_V2_SendData(0xFF);
|
||||
EPD_2IN9_V2_SendData(0x0F);
|
||||
EPD_2IN9_V2_SendCommand(0x20); //Activate Display Update Sequence
|
||||
EPD_2IN9_V2_ReadBusy();
|
||||
}
|
||||
|
|
@ -256,8 +265,26 @@ void EPD_2IN9_V2_Display_Partial(UBYTE *Image)
|
|||
DEV_Digital_Write(EPD_RST_PIN, 1);
|
||||
DEV_Delay_ms(10);
|
||||
|
||||
EPD_2IN9_V2_LUT();
|
||||
EPD_2IN9_V2_SendCommand(0x37);
|
||||
EPD_2IN9_V2_SendData(0x00);
|
||||
EPD_2IN9_V2_SendData(0x00);
|
||||
EPD_2IN9_V2_SendData(0x00);
|
||||
EPD_2IN9_V2_SendData(0x00);
|
||||
EPD_2IN9_V2_SendData(0x00);
|
||||
EPD_2IN9_V2_SendData(0x40);
|
||||
EPD_2IN9_V2_SendData(0x00);
|
||||
EPD_2IN9_V2_SendData(0x00);
|
||||
EPD_2IN9_V2_SendData(0x00);
|
||||
EPD_2IN9_V2_SendData(0x00);
|
||||
|
||||
EPD_2IN9_V2_SendCommand(0x3C); //BorderWavefrom
|
||||
EPD_2IN9_V2_SendData(0x80);
|
||||
|
||||
EPD_2IN9_V2_SendCommand(0x22);
|
||||
EPD_2IN9_V2_SendData(0xC0);
|
||||
EPD_2IN9_V2_SendCommand(0x20);
|
||||
EPD_2IN9_V2_ReadBusy();
|
||||
|
||||
EPD_2IN9_V2_SetWindows(0, 0, EPD_2IN9_V2_WIDTH-1, EPD_2IN9_V2_HEIGHT-1);
|
||||
EPD_2IN9_V2_SetCursor(0, 0);
|
||||
|
|
|
|||
|
|
@ -225,14 +225,13 @@ void EPD_7IN5B_V2_Display(const UBYTE *blackimage, const UBYTE *ryimage)
|
|||
Width =(EPD_7IN5B_V2_WIDTH % 8 == 0)?(EPD_7IN5B_V2_WIDTH / 8 ):(EPD_7IN5B_V2_WIDTH / 8 + 1);
|
||||
Height = EPD_7IN5B_V2_HEIGHT;
|
||||
|
||||
//send black data
|
||||
//send black data
|
||||
EPD_7IN5B_V2_SendCommand(0x10);
|
||||
for (UDOUBLE j = 0; j < Height; j++) {
|
||||
for (UDOUBLE i = 0; i < Width; i++) {
|
||||
EPD_7IN5B_V2_SendData(blackimage[i + j * Width]);
|
||||
}
|
||||
}
|
||||
EPD_7IN5B_V2_SendCommand(0x92);
|
||||
|
||||
//send red data
|
||||
EPD_7IN5B_V2_SendCommand(0x13);
|
||||
|
|
@ -255,8 +254,7 @@ void EPD_7IN5B_V2_WritePicture(const UBYTE *blackimage, UBYTE Block)
|
|||
if(Block == 0){
|
||||
EPD_7IN5B_V2_SendCommand(0x10);
|
||||
}else if(Block == 2){
|
||||
EPD_7IN5B_V2_SendCommand(0x92);
|
||||
EPD_7IN5B_V2_SendCommand(0x13);
|
||||
EPD_7IN5B_V2_SendCommand(0x13);
|
||||
}
|
||||
for (UDOUBLE j = 0; j < Height/2; j++) {
|
||||
for (UDOUBLE i = 0; i < Width; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue