void Display_Clear(void){//编译器居然提示这句语法错误,怎么回事呢?? U8 j,k; //-------------------------------------- LCD_CSA(); for(k = 0; k < 8; k++){ WriteCommand_0108((U8)(0 + Ks0108_CMD_Set_Addr)); //0--7 WriteCommand_0108((U8)(k + Ks0108_CMD_Set_Page)); //0--63 for(j = 0;j < 64;j++){ WriteData_0108(0x00); } } KS0108_SetStartRow(0); //-------------------------------------- LCD_CSB(); for(k = 0; k < 8; k++){ WriteCommand_0108((U8)(0 + Ks0108_CMD_Set_Addr)); //0--7 WriteCommand_0108((U8)(k + Ks0108_CMD_Set_Page)); //0--63 for(j = 0;j < 64;j++){ WriteData_0108(0x00); } } KS0108_SetStartRow(0); //------------------------------------- LCD_CSC(); for(k = 0; k < 8; k++){ WriteCommand_0108((U8)(0 + Ks0108_CMD_Set_Addr));//0--7 WriteCommand_0108((U8)(k + Ks0108_CMD_Set_Page));//0-63 for(j = 0;j < 64;j++){ WriteData_0108(0x00); } } KS0108_SetStartRow(0); //------------------------------------- LCD_CS_None(); }
|