Page 733 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 733
void draw_black(unsigned short X, unsigned short Y)//검은 화면을 나타나게 하는 함수
{
unsigned long I,J;
set_bound(X,Y,(X+110)-1,(Y+110)-1);
for(I=0; I<110;I++)
{
for(J=0; J<110;J++)lcd_write_data(0x000000);
}
}
struct img_struct img;
struct img_struct img2;
struct img_struct img3;
struct img_struct img4;
struct img_struct img5;
void main()
{
DDRC=0xff;
DDRD=0xff;
DDRB=0xff;
DDRE=0x00;
lcd_init_cmd();
img_struct_init1(&img);
img_struct_init2(&img2);
img_struct_init3(&img3);
img_struct_init4(&img4);
img_struct_init5(&img5);
RESET_CS;
LCD_Clear(0x000000);
while(1)
{
RESET_CS;
- 726 -