Page 629 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 629
}
}
*/
void GLCD_Test(void)
{
u16 i,j;
wr_reg(0x20, 0);
wr_reg(0x21, 0);
CS_reset;
wr_cmd(0x22);
for(i=0;i<320;i++)
for(j=0;j<240;j++)
{
if(i>279)wr_dat(0x0000);
else if(i>239)wr_dat(0x001f);
else if(i>199)wr_dat(0x07e0);
else if(i>159)wr_dat(0x07ff);
else if(i>119)wr_dat(0xf800);
else if(i>79)wr_dat(0xf81f);
else if(i>39)wr_dat(0xffe0);
else wr_dat(0xffff);
}
CS_set;
}
LCDSTR.h
#ifndef __LCDSTR_H
#define __LCDSTR_H
extern char view[10][3][10];
extern void STR (void);
#endif
- 622 -