guanjiao
2018-05-12 7bd852c98c52c306e3628acedc33149ebee3cff6
源码/核心板/Src/platform/lcd.c
@@ -30,44 +30,44 @@
    int sleep = 0;
    //int j = 10000;
//    if(rs_enable)
//    {
//        port_LCD_RS_set();
//    }
//    else
//    {
//        if(bodylength == 1)
//        {
//            if(bodyBuffer[0] & 0x3) //if this is command = 1 or 2 - exsecution time is > 1ms
//                sleep = 1 ;
//        }
//        port_LCD_RS_clear();
//    }
    //    if(rs_enable)
    //    {
    //        port_LCD_RS_set();
    //    }
    //    else
    //    {
    //        if(bodylength == 1)
    //        {
    //            if(bodyBuffer[0] & 0x3) //if this is command = 1 or 2 - exsecution time is > 1ms
    //                sleep = 1 ;
    //        }
    //        port_LCD_RS_clear();
    //    }
//    port_SPIy_clear_chip_select();  //CS low
    //    port_SPIy_clear_chip_select();  //CS low
//    //while(j--); //delay
    //    //while(j--); //delay
//    for(i=0; i<bodylength; i++)
//    {
//        port_SPIy_send_data(bodyBuffer[i]); //send data on the SPI
    //    for(i=0; i<bodylength; i++)
    //    {
    //        port_SPIy_send_data(bodyBuffer[i]); //send data on the SPI
//        while (port_SPIy_no_data()); //wait for rx buffer to fill
    //        while (port_SPIy_no_data()); //wait for rx buffer to fill
//        port_SPIy_receive_data(); //this clears RXNE bit
//    }
    //        port_SPIy_receive_data(); //this clears RXNE bit
    //    }
//    //j = 10000;
    //    //j = 10000;
//    port_LCD_RS_clear();
    //    port_LCD_RS_clear();
//    //while(j--); //delay
    //    //while(j--); //delay
//    port_SPIy_set_chip_select();  //CS high
    //    port_SPIy_set_chip_select();  //CS high
//    if(sleep)
//        deca_sleep(2);
    //    if(sleep)
    //        deca_sleep(2);
} // end writetoLCD()
/*! ------------------------------------------------------------------------------------------------------------------
@@ -84,12 +84,12 @@
{
    uint8 command;
    /* Return cursor home and clear screen. */
//    command = 0x2;
//    writetoLCD(1, 0, &command);
//    command = 0x1;
//    writetoLCD(1, 0, &command);
//    /* Write the string to display. */
//    writetoLCD(strlen(string), 1, (const uint8 *)string);
    //    command = 0x2;
    //    writetoLCD(1, 0, &command);
    //    command = 0x1;
    //    writetoLCD(1, 0, &command);
    //    /* Write the string to display. */
    //    writetoLCD(strlen(string), 1, (const uint8 *)string);
}
#endif