lpcware

USBCDC print string

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by james on Wed Apr 18 03:08:40 MST 2012
Hi guy,

I modified the example in USBCDC to printstring instead of a single char by looping.

void VCOM_putstring(char *pcString)
{
    VCOM_putchar(13);                    //return carriage
    long i = 0;
    // loop through until reach string's zero terminator
    for (i=0;i<strlen(pcString);i++)
    {
        VCOM_putchar(pcString); // print each character
    }
}


However, this only prints up to 120chars into the teraterm. how can i modify it to print a lot more??

Outcomes