diff options
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 0673b80003..9e26459473 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) |