void LCD_blockClear(kal_uint16 startx,kal_uint16 starty,kal_uint16 endx,kal_uint16 endy, kal_uint16 data) { kal_uint16 LCD_x; kal_uint16 LCD_y; write_command(0x2A); //X Address Setup write_parameter(0x00); write_parameter(startx); write_parameter(0x00); write_parameter(endx); write_command(0x2B); //Y Address Setup write_parameter(0x00); write_parameter(starty); write_parameter(0x00); write_parameter(endy); write_command(0x2C); //Write Display Data for(LCD_y=y1; LCD_y<=y2; LCD_y++) { for(LCD_x=x1; LCD_x<=x2; LCD_x++) { #ifdef LCD_16BIT_MODE LCD_DataWrite(data); #else *(volatile kal_uint8 *)LCD_DATA_ADDR = (data&0xFF00)>>8; Delay_ms(1); *(volatile kal_uint8 *)LCD_DATA_ADDR= data&0xFF; #endif } } }
- 1
- 粉丝: 0
- 资源: 1
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助