经过测试,好用~void initial0(void) { delay(40); //大于40ms的延时程序 IO0SET = PSB; //设置为串行工作模式 delay(1); //延时 IO0CLR = RST; //复位 delay(1); IO0SET = RST; //复位置高 delay(10); TransferCom(0x30); //8BIT设置,RE=0,G=0,图片显示关 delay(100); //大于100us的延时程序 TransferCom(0x0c); //D=1,显示开 delay(100); TransferCom(0x01); //清屏 delay(10); TransferCom(0x06); //模式设置,光标从右向左加1位移动 delay(100); } TransferCom(0x01); //清屏 delay(10); TransferCom(0x06); //模式设置,光标从右向左加1位移动 delay(100); }