1. 31 Jul, 2014 2 commits
    • 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
    • Damien George's avatar
      py: Add mp_obj_str_builder_end_with_len. · 5f27a7e8
      Damien George authored
      This allows to create str's with a smaller length than initially asked
      for.
      5f27a7e8
  2. 30 Jul, 2014 1 commit
  3. 29 Jul, 2014 1 commit
  4. 28 Jul, 2014 2 commits
  5. 27 Jul, 2014 1 commit
  6. 25 Jul, 2014 1 commit
    • Dave Hylands's avatar
      Add support for storing args during an exception raised by an irq. · 5b7fd20f
      Dave Hylands authored
      The user code should call micropython.alloc_emergency_exception_buf(size)
      where size is the size of the buffer used to print the argument
      passed to the exception.
      
      With the test code from #732, and a call to
      micropython.alloc_emergenncy_exception_buf(100) the following error is
      now printed:
      ```python
      >>> import heartbeat_irq
      Uncaught exception in Timer(4) interrupt handler
      Traceback (most recent call last):
        File "0://heartbeat_irq.py", line 14, in heartbeat_cb
      NameError: name 'led' is not defined
      ```
      5b7fd20f
  7. 24 Jul, 2014 3 commits
  8. 22 Jul, 2014 8 commits
  9. 21 Jul, 2014 4 commits
  10. 20 Jul, 2014 2 commits
  11. 19 Jul, 2014 5 commits
  12. 18 Jul, 2014 1 commit
  13. 17 Jul, 2014 5 commits
  14. 16 Jul, 2014 1 commit
  15. 15 Jul, 2014 3 commits