- 论坛徽章:
- 0
|
请教,液晶屏的全屏输出 :)
thank you very much!!
I have written several code as follows(not have tested yet. There still exist some interface arguments to comfirmed):
- //**************************
- // convert all the Lcd data to a buffer
- //
- //
- //*************************/
- int readLCD(unsigned char buf_data[length], unsigned char LCDdata[brx][bry])
- {
- int temp;
- int x, y;
- int i;
- i = 0;
- temp = 0;
- memset(buf_data, 0x0, length);
- for (y=0; y<bry; y++)
- for (x=0; x<brx; x++)
- {
- i++;
- if(i >; 8)
- temp++;
- buf_data[temp] |= LCDdata[x][y];
- buf_data[temp] = ((buf_data[temp]<<1)&0xff);
- }
- }
复制代码
is it apply to the normal structure to deal with such problem?
P.S. the data stored in the LCD are unsigned char
1 = 0x01
0 = 0x00 |
|