diff options
author | Daniel Campora <daniel@wipy.io> | 2015-09-14 19:38:28 +0200 |
---|---|---|
committer | Daniel Campora <daniel@wipy.io> | 2015-09-16 10:10:35 +0200 |
commit | 0e52d9860adc2d3d7328c649f3b6995ffc04fc63 (patch) | |
tree | b4ec7f404aebcb4b8bded450332a855744748e41 /tests | |
parent | aba75e12330d8e80b2d909ace0a419de85774317 (diff) | |
download | micropython-0e52d9860adc2d3d7328c649f3b6995ffc04fc63.tar.gz micropython-0e52d9860adc2d3d7328c649f3b6995ffc04fc63.zip |
tests/wipy: Improve I2C tests.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wipy/i2c.py | 5 | ||||
-rw-r--r-- | tests/wipy/i2c.py.exp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/wipy/i2c.py b/tests/wipy/i2c.py index 9e26459473..57015767df 100644 --- a/tests/wipy/i2c.py +++ b/tests/wipy/i2c.py @@ -166,6 +166,11 @@ try: except Exception: print("Exception") +try: + I2C(1, I2C.MASTER, baudrate=100000) +except Exception: + print("Exception") + # reinitialization must work i2c.init(baudrate=400000) print(i2c) diff --git a/tests/wipy/i2c.py.exp b/tests/wipy/i2c.py.exp index 54afbdbd26..083da9be7d 100644 --- a/tests/wipy/i2c.py.exp +++ b/tests/wipy/i2c.py.exp @@ -47,4 +47,5 @@ Exception Exception Exception Exception +Exception I2C(0, I2C.MASTER, baudrate=400000) |