diff options
author | Daniel Campora <daniel@wipy.io> | 2015-09-11 11:05:58 +0200 |
---|---|---|
committer | Daniel Campora <daniel@wipy.io> | 2015-09-16 10:10:19 +0200 |
commit | e77abc261bf47343d14c4b5e26c80a0136b93e7c (patch) | |
tree | d9b51ab5a911f91f84931462fec3f063c94380d8 /tests/wipy/i2c.py | |
parent | c69642a4606bb70ea22756fea1ef6e965d1bbd9b (diff) |
cc3200: Default peripheral ID support on I2C.
Diffstat (limited to 'tests/wipy/i2c.py')
-rw-r--r-- | tests/wipy/i2c.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/wipy/i2c.py b/tests/wipy/i2c.py index 0673b8000..9e2645947 100644 --- a/tests/wipy/i2c.py +++ b/tests/wipy/i2c.py @@ -16,6 +16,13 @@ elif 'WiPy' in machine: else: raise Exception('Board not supported!') +i2c = I2C(0, I2C.MASTER, baudrate=400000) +# try initing without the peripheral id +i2c = I2C() +print(i2c) +i2c = I2C(mode=I2C.MASTER, baudrate=50000, pins=i2c_pins) +print(i2c) + i2c = I2C(0, I2C.MASTER, baudrate=100000) print(i2c) i2c = I2C(0, mode=I2C.MASTER, baudrate=400000) |