#include #include #include #define uchar unsigned char #define uint unsigned int sbit p17=P1^7; sbit p27=P2^7; sbit rs=P1^0; sbit rw=P1^1; sbit en=P1^2; sbit cs1=P1^3; sbit cs2=P1^4; void write_com(uchar com) { rw=0; rs=0; //写指令 delay_ms(1); P0=com; delay_ms(