diff options
author | Damien George <damien.p.george@gmail.com> | 2014-07-31 10:30:42 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-07-31 10:30:42 +0100 |
commit | 3c4db9f91c01211aed47afe3efdd11477badc0bc (patch) | |
tree | ba4a7fbf2d13c672992966469f5bf7abf7ec1d98 /py/objint.c | |
parent | 5f27a7e81135f7a7c0c75ee551fe0c6103048046 (diff) | |
download | micropython-3c4db9f91c01211aed47afe3efdd11477badc0bc.tar.gz micropython-3c4db9f91c01211aed47afe3efdd11477badc0bc.zip |
stmhal: Add USB_VCP class/object, for direct USB VCP control.
Before, pyb.stdin/pyb.stdout allowed some kind of access to the USB VCP
device, but it was basic access.
This patch adds a proper USB_VCP class and object with much more control
over the USB VCP device. Create an object with pyb.USB_VCP(), then use
this object as if it were a UART object. It has send, recv, read,
write, and other methods. send and recv allow a timeout to be specified.
Addresses issue 774.
Diffstat (limited to 'py/objint.c')
0 files changed, 0 insertions, 0 deletions