aboutsummaryrefslogtreecommitdiffstats
path: root/examples/test-serialusb.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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.