Skip to content
Snippets Groups Projects
Select Git revision
  • 8f205c2c9bed1f3f167f2b0a5abba1e676a6aa01
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

pybi2c.c

  • Damien George's avatar
    8f205c2c
    cc3200/mods/pybi2c: Make machine.I2C constructor/init conform to HW API. · 8f205c2c
    Damien George authored
    This is a user-facing change to the cc3200's API, to make it conform to the
    new machine hardware API.  The changes are:
    
    - change I2C constructor to: I2C(id=0, *, freq=100000, scl=None, sda=None)
    - change I2C init to: init(*, freq, scl, sda)
    - removal of machine.I2C.MASTER constant
    - I2C str/repr no longer prints I2C.MASTER
    
    To update existing code it should be enough to just remove the I2C.MASTER
    constant from contructor/init for I2C.
    8f205c2c
    History
    cc3200/mods/pybi2c: Make machine.I2C constructor/init conform to HW API.
    Damien George authored
    This is a user-facing change to the cc3200's API, to make it conform to the
    new machine hardware API.  The changes are:
    
    - change I2C constructor to: I2C(id=0, *, freq=100000, scl=None, sda=None)
    - change I2C init to: init(*, freq, scl, sda)
    - removal of machine.I2C.MASTER constant
    - I2C str/repr no longer prints I2C.MASTER
    
    To update existing code it should be enough to just remove the I2C.MASTER
    constant from contructor/init for I2C.