Page 302 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 302
│ │ / │
. │ / │
. │ / │
│ │ / │
. │ └── │
│ --------------> │
[239]└──────────────────────────────────┘[239]
[319] [0]
*/
void LCD_set (char c[10][10], char c2[10][10])
{
int lin=0;
LCD_clear ();
for (lin=0; lin<10; lin++) // 10line 통합
{
LCD (lin,c[lin],c2[lin]);
}
}
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);
- 295 -