/* print a newline, scroll lcd */ void lcdterm_newline(void) { uint8_t i; if (!active) return; /* blank old cursor */ lcdterm_plotchar(cursorx, cursory, tiles[' ']); cursorx = 0; cursory++; if (cursory >= 8) { atBottom = true; cursory = 0; } if (atBottom) { /* clear the line */ for (i=0;i<32;i++) lcdterm_plotchar(i<<2, cursory, tiles[' ']); addr += 8; lcd_cs(1); lcd_setAddr(addr); lcd_cs(0); } }
void lcd_clearScreen(unsigned short color) { int i; lcd_setAddr(0,0,LCD_GRAMWIDTH,LCD_GRAMHEIGH); for (i = 0;i < LCD_GRAMSIZE; i++){ lcd_data16(color); } lcd_screencolor=color; int x , y; for (y = 0; y<16; y++) for (x = 0; x<25; x++) lcd_screen_chars[x][y]=' '; lcd_screen_x = 0; lcd_screen_y = 0; }
void lcd_drawPixel(unsigned short x, unsigned short y, unsigned short color) { // check boundary lcd_setAddr(x,y,x+1,y+1); lcd_data16(color); }