Skip to content
  • Damien George's avatar
    stmhal: Add USB_VCP class/object, for direct USB VCP control. · 3c4db9f9
    Damien George authored
    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.
    3c4db9f9