Waveshare 6inch e-Paper HAT User Manual page 19

Table of Contents

Advertisement

6inch e-Paper HAT User Manual
3.
{
4.
IT8951LdImgInfo
5.
IT8951AreaImgInfo
6.
TWord
width
7.
TWord
high
8.
TDWord
i;
9.
10.
for
(i
=
0;i
11.
{
12.
gpFrameBuf[i] = zoo_800_600[i];
13.
}
14.
15.
IT8951WaitForDisplayReady();
16.
17.
//Setting Load image information
18.
stLdImgInfo.ulStartFBAddr
19.
stLdImgInfo.usEndianType
20.
stLdImgInfo.usPixelFormat
21.
stLdImgInfo.usRotate
22.
stLdImgInfo.ulImgBufBaseAddr
23.
//Set Load Area
24.
stAreaImgInfo.usX
25.
stAreaImgInfo.usY
26.
stAreaImgInfo.usWidth
27.
stAreaImgInfo.usHeight
28.
29.
IT8951HostAreaPackedPixelWrite(&stLdImgInfo,
&stAreaImgInfo); //Display function 2
30.
IT8951DisplayArea(0,0, gstI80DevInfo.usPanelW,
gstI80DevInfo.usPanelH, 2);
【Note】The instruction herein only show you how to use the demo codes we provide.
If you need further features, please create your own code by referring to resources
which are provided in wiki.
stLdImgInfo;
stAreaImgInfo;
= gstI80DevInfo.usPanelW;
= gstI80DevInfo.usPanelH;
< width*high;i++)
= IT8951_ROTATE_0;
= 0;
= 0;
= width;
= high;
= (TDWord)gpFrameBuf;
= IT8951_LDIMG_L_ENDIAN;
= IT8951_8BPP;
= gulImgBufAddr;
19 / 19

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Waveshare 6inch e-Paper HAT

Table of Contents