diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wipy/i2c.py | 7 | ||||
-rw-r--r-- | tests/wipy/i2c.py.exp | 2 | ||||
-rw-r--r-- | tests/wipy/uart.py | 1 |
3 files changed, 10 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) diff --git a/tests/wipy/i2c.py.exp b/tests/wipy/i2c.py.exp index c50cbf0e52..54afbdbd26 100644 --- a/tests/wipy/i2c.py.exp +++ b/tests/wipy/i2c.py.exp @@ -1,4 +1,6 @@ I2C(0, I2C.MASTER, baudrate=100000) +I2C(0, I2C.MASTER, baudrate=50000) +I2C(0, I2C.MASTER, baudrate=100000) I2C(0, I2C.MASTER, baudrate=400000) I2C(0, I2C.MASTER, baudrate=400000) 104 diff --git a/tests/wipy/uart.py b/tests/wipy/uart.py index 2c92de6649..5b01c4518c 100644 --- a/tests/wipy/uart.py +++ b/tests/wipy/uart.py @@ -30,6 +30,7 @@ for uart_id in uart_id_range: uart = UART(baudrate=1000000) uart.sendbreak() +uart = UART(baudrate=1000000) uart = UART() print(uart) uart = UART(baudrate=38400, pins=('GP12', 'GP13')) |