void LCDShiftCursorUp(void) { BYTE i; // Set Cursor off _uLCDloops = LCD_F_INSTR; PMADDR = 0x0000; PMDIN1 = 0x0C; Wait(_uLCDloops); for(i=0;i<16;i++) { LCDShiftCursorLeft(); } // Set Cursor Blink _uLCDloops = LCD_F_INSTR; PMADDR = 0x0000; PMDIN1 = 0x0F; Wait(_uLCDloops); }
void LCDPut( char a) { switch ( a) { case '\b': LCDShiftCursorLeft(); SetColor( BLACK); Bar( _cx * FONT_W, _cy * FONT_H, (_cx+1) * FONT_W, (_cy+1) * FONT_H); SetColor( GREEN); break; case '\n': LCDShiftCursorDown(); break; case '\r': _cx = 0; break; case '\t': _cx = ((_cx/8)+1)*8; break; default: LCDPutChar( a); break; } // switch } // LCDPut