Page 299 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 299
LCD_SetCursor(Xaddress,y);
for(index = 0; index < 24; index++)
{
Clr_Cs;
wr_cmd(0x22); /* Prepare to write GRAM */
for(i = 15; i >= 0; i--)
// for(i = 0; i < 16; i++)
{
if((c[index] & (1 << i)) == 0x00) {
wr_dat(BackColor1);
} else {
wr_dat(TextColor1);
}
}
Set_Cs;
Xaddress++;
LCD_SetCursor(Xaddress,y);
}
}
void GLCD_displayChar(unsigned int ln, unsigned int col, unsigned char c) {
c -= 32;
GLCD_drawChar(ln, col, &ASCII_Table[c * 24]);
}
//사용자 함수 1(총 개수 출력용)
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 GLCD_displayChar1(unsigned int ln, unsigned int col, unsigned char c) {
c -= 32;
GLCD_drawChar1(ln, col, &ASCII_Table[c * 24]);
}
//사용자 함수 2(총 가격 출력용)
- 292 -