/*======================================================================================*/ /* ST7032 Test Code */ /* SLC1602I Test Code */ /* Shenzhen Surenoo Technology Co.,Ltd. www.surenoo.com */ /*======================================================================================*/ #include sbit cs1=P3^2; sbit reset=P1^1; sbit rs=P310; sbit sclk=P1^2; sbit sid=P1^3; sbit key=P2^0; #define uchar unsigned char #define uint unsigned int /*======================================================================================*/ char code CGRAM_code[]={ 0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f, 0x1f,0x11,0x11,0x11,0x11,0x11,0x11,0x1f, 0x1f,0x00,0x1f,0x00,0x1f,0x00,0x1f,0x00, 0x00,0x1f,0x00,0x1f,0x00,0x1f,0x00,0x1f, 0x0a,0x0a,0x0a,0x0a,0x0a,0x0a,0x0a,0x0a, 0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15, 0x0f,0x09,0x0f,0x09,0x0f,0x09,0x11,0x00, 0x08,0x0f,0x12,0x0f,0x0a,0x1f,0x02,0x02, }; char code CGRAM[]= {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07}; char code japanese1[]= {0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,}; char code japanese2[]= {0xb6,0xb7,0xb8,0xb9,0xba,0xbb,}; /*长一点的延时*/ void delay(int i) { int j,k; for(j=0;j