summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-09-11 11:05:58 +0200
committerDaniel Campora <daniel@wipy.io>2015-09-16 10:10:19 +0200
commite77abc261bf47343d14c4b5e26c80a0136b93e7c (patch)
treed9b51ab5a911f91f84931462fec3f063c94380d8 /tests
parentc69642a4606bb70ea22756fea1ef6e965d1bbd9b (diff)
downloadmicropython-e77abc261bf47343d14c4b5e26c80a0136b93e7c.tar.gz
micropython-e77abc261bf47343d14c4b5e26c80a0136b93e7c.zip
cc3200: Default peripheral ID support on I2C.
Diffstat (limited to 'tests')
-rw-r--r--tests/wipy/i2c.py7
-rw-r--r--tests/wipy/i2c.py.exp2
-rw-r--r--tests/wipy/uart.py1
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'))