/********************************************************************** * LCD test program **********************************************************************/ #include #include "lcd4.h" #define _XTAL_FREQ 10000000 __CONFIG(HS & WDTDIS & PWRTEN & UNPROTECT); void main(void){ int i; Init_LCD4(); Puts_LCD4(" 01234567890abc "); Set_Pos(0x40); Puts_LCD4(" 01234567890abc "); Set_Pos(0x10); Puts_LCD4(" ABCDEFGHIJKLMN "); Set_Pos(0x50); Puts_LCD4(" OPQRSTUVWXYZ!@ "); while(1){; for(i=0;i<100;i++){ __delay_ms(10); } Shift_LN(16); for(i=0;i<100;i++){ __delay_ms(10); } Shift_RN(16); } }