Page 626 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 626
int hei, wid;
cousor(0,0);
CS_reset;
wr_cmd (0x22);
for(hei=0; hei<240; hei++)
{
for(wid=0; wid<320; wid++)
{
wr_dat (back);//all fixel
}
}
CS_set;
}
void window ()
{
wr_reg (0x50,0x00);//horizontal start
wr_reg (0x51,0xEF);//horizontal end, 0-239
wr_reg (0x52,0x00);//vertical start
wr_reg (0x53,0x13F);//vertical end, 0-319
}
void LCD_fix (int lin, int width, char c) //one gulza, ( down move, right move, text )
{
unsigned short * code = &ASCII_Table[(c-=32) * 24];
int cou_v =width;
int cou_h =lin;
int i;
int j;
for (j=0; j<=23; j++) //dot 24 height
{
CS_reset;
wr_cmd(0x22);
for (i=15; i>=0; i--) //dot 16 width, auto cousor
{
- 619 -