serBuf2 = "Welcome to my CDC Program"; USB_WriteEP (CDC_DEP_IN, (unsigned char *)&serBuf2[0], 32); |
Welcome to my CDC Program |
int temperature = 25; serBuf2 = ([I]I dont know what to put here[/I]); USB_WriteEP (CDC_DEP_IN, (unsigned char *)&serBuf2[0], 32); |
Temperature today is: 25 degrees. |
char data[32]; int var = 0; sprintf (data, "Temperature: %d", var); USB_WriteEP (CDC_DEP_IN, (unsigned char *)data, 32); |