aboutsummaryrefslogtreecommitdiffstats
path: root/examples/test-serialusb.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Brought examples/ up to date; PIN_MAP bugfix for D24.Marti Bolivar2011-03-041-40/+34
|
* working serialUSB with timeoutbnewbold2010-07-191-0/+135
as a temporary workaround for the fact that SerialUSB is often blocking, this crude implementation makes the low-level C usbSendBytes function non-blocking (with a return code of bytes sent) and implements a 2ms timeout in the wirish write() function. also adds begin(), end(), getDTR(), getRTS(), pending(). device is still initialized the old fashioned way during init() so that, eg, autoreset will work. includes a simple multi-test program.