Platform/ECM3532/M3/hw/drivers/display/eta_devices_nhd0216.c
/***************************************************************************/
/**
 *
 * EtaDevicesNhd0216StringPrint - Print a string to the display
 *
 * @param pcStr String to print.
 * @param ui8X ui8X location.
 * @param ui8Y ui8Y location.
 *
 ******************************************************************************/
Print a string to the display
@param pcStr String to print.
@param ui8X ui8X location.
@param ui8Y ui8Y location.
Print a string to the display @param pcStr String to print . @param ui8X ui8X location . @param ui8Y ui8Y location .
void
EtaDevicesNhd0216StringPrint(char *pcStr, uint8_t ui8X, uint8_t ui8Y)
{
    uint8_t ui8I, ui8Cmd;
     Configure position.
    if(ui8X == 0)
    {
        ui8Cmd = 0x01 | ui8Y;
    }
    else
    {
        ui8Cmd = 0xA0 | ui8Y;
    }
     Send the command.
    EtaDevicesNhd0216CommandSend(ui8Cmd);
     Send the data.
    ui8I = 0;
    while(pcStr[ui8I] != 0)
    {
        EtaDevicesNhd0216DataSend(pcStr[ui8I++]);
    }
}
void EtaDevicesNhd0216StringPrint ( char * pcStr , uint8_t ui8X , uint8_t ui8Y ) { uint8_t ui8I , ui8Cmd ; if ( ui8X == 0 ) { ui8Cmd = 0x01 | ui8Y ; } else { ui8Cmd = 0xA0 | ui8Y ; } EtaDevicesNhd0216CommandSend ( ui8Cmd ) ; ui8I = 0 ; while ( pcStr [ ui8I ] != 0 ) { EtaDevicesNhd0216DataSend ( pcStr [ ui8I ++ ] ) ; } }
EtaDevicesNhd0216StringPrint - Print a string to the display
 @param pcStr String to print.
EtaDevicesNhd0216StringPrint - Print a string to the display @param pcStr String to print .
// // Configure position. // // // Send the command. // // // Send the data. //