/* * @ clear the LCD */ void LCD_clear() { int i; uint8 buffer = 0x00; LCD_set_xy(0, 0); for(i = 0; i < 504; i ++) { LCD_draw_bytes(&buffer, sizeof(buffer)); } LCD_set_xy(0, 0); }
void LCD_write_str(INT8U x,INT8U Y,INT8U *s) { LCD_write_char(0,' '); LCD_set_xy( x, Y ); //写地址 while (*s) // 写显示字符 { LCD_write_char( 0, *s ); s ++; } }
void LCD_write_char(unsigned char X,unsigned char Y,unsigned char Recdata) //列x=0~15,行y=0,1 { LCD_set_xy(X, Y); // 写地址 LCD_write_data(Recdata); }