Skip to content
Snippets Groups Projects
  1. Jun 02, 2019
  2. May 29, 2019
  3. May 20, 2019
    • Damien George's avatar
      docs/pyboard/quickref: Refer to new machine.I2C instead of old pyb.I2C. · e5e47219
      Damien George authored
      On stm32 boards, machine.I2C is now preferred over pyb.I2C.
      e5e47219
    • Damien George's avatar
      docs/machine.I2C: Add writevto method to write a vector of byte bufs. · 8bec0e86
      Damien George authored
      This allows to efficiently send to an I2C slave data that is made up of
      more than one buffer.  Instead of needing to allocate temporary memory to
      combine buffers together this new method allows to pass in a tuple or list
      of buffers.  The name is based on the POSIX function writev() which has
      similar intentions and signature.
      
      The reasons for taking this approach (compared to having an interface with
      separate start/write/stop methods) are:
      - It's a backwards compatible extension.
      - It's convenient for the user.
      - It's efficient because there is only one Python call, then the C code can
        do everything in one go.
      - It's efficient on the I2C bus because the implementation can do
        everything in one go without pauses between blocks of bytes.
      - It should be possible to implement this extension in all ports, for
        hardware and software I2C.
      
      Further discussion is found in issue #3482, PR #4020 and PR #4763.
      8bec0e86
  4. May 10, 2019
  5. May 07, 2019
  6. May 06, 2019
  7. Apr 18, 2019
  8. Apr 15, 2019
  9. Mar 29, 2019
  10. Mar 28, 2019
  11. Mar 13, 2019
  12. Mar 08, 2019
  13. Feb 25, 2019
  14. Feb 12, 2019
    • Mike Causer's avatar
      all: Change PYB message prefix to MPY. · 812969d6
      Mike Causer authored
      Replaces "PYB: soft reboot" with "MPY: soft reboot", etc.
      
      Having a consistent prefix across ports reduces the difference between
      ports, which is a general goal.  And this change won't break pyboard.py
      because that tool only looks for "soft reboot".
      812969d6
  15. Feb 08, 2019
  16. Jan 30, 2019
  17. Jan 27, 2019
    • Damien George's avatar
      docs/machine: Change sleep to lightsleep and add timeout arguments. · b16146d1
      Damien George authored
      The machine.sleep() function can be misleading because it clashes with
      time.sleep() which has quite different semantics.  So change it to
      machine.lightsleep() which shows that it is closer in behaviour to
      machine.deepsleep().
      
      Also, add an optional argument to these two sleep functions to specify a
      maximum time to sleep for.  This is a common operation and underlying
      hardware usually has a special way of performing this operation.
      
      The existing machine.sleep() function will remain for backwards
      compatibility purposes, and it can simply be an alias for
      machine.lightsleep() without arguments.  The behaviour will be the same.
      b16146d1
  18. Jan 25, 2019
  19. Jan 11, 2019
  20. Dec 12, 2018
  21. Dec 10, 2018
  22. Oct 23, 2018
  23. Oct 19, 2018
  24. Oct 18, 2018
  25. Oct 14, 2018
  26. Oct 13, 2018
  27. Oct 05, 2018
  28. Oct 01, 2018
Loading