CDC.printf

Name
CDC.printf - send string to CDC device

Description
This command sends a string to the CDC device - usually USB connected to virtual text terminal.

The Communication Device Class (CDC) is a general-purpose way to enable all types of communications on the Universal Serial Bus (USB). This class makes it possible to connect communication devices such as digital telephones or analog modems, as well as networking devices like Asymmetric Digital Subscriber Line (ADSL, DSL) or Cable modems. While a CDC device enables the implementation of quite complex devices, it can also be used as a very simple method for communication on the USB. For example, a CDC device can appear as a virtual COM port (terminal window), which greatly simplifies application development on the host side.
 * Since Beta X

Syntax
CDC.printf ( const uint8 *fmt, ... )

Bugs & Limitations
CDC.printf uses a buffer array of a limited size and if the output if too long the output will appear corrupted and may also result in other data corruption.

For practical purposes the limit of the output is approximately 64 characters.

Printing a formatted float eg CDC.printf("float = %.1f", float); suffers from rounding errors (workaround: use a double instead of a float).

Comments
On Linux, check output with On OS X, check output with  where n is a number unique to your system. On Windows, check output with ???...