summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/pyb/i2c.py3
-rw-r--r--tests/pyb/pyb1.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/pyb/i2c.py b/tests/pyb/i2c.py
index a220f8e85..6875e5a5a 100644
--- a/tests/pyb/i2c.py
+++ b/tests/pyb/i2c.py
@@ -19,7 +19,8 @@ i2c.deinit()
accel_addr = 76
-pyb.Accel() # this will init the bus for us
+pyb.Accel() # this will init the MMA for us
+i2c.init(I2C.MASTER, baudrate=400000)
print(i2c.scan())
print(i2c.is_ready(accel_addr))
diff --git a/tests/pyb/pyb1.py b/tests/pyb/pyb1.py
index 184acbdc4..443722ca8 100644
--- a/tests/pyb/pyb1.py
+++ b/tests/pyb/pyb1.py
@@ -29,8 +29,6 @@ pyb.enable_irq()
print(pyb.have_cdc())
-pyb.hid((0, 0, 0, 0)) # won't do anything
-
pyb.sync()
print(len(pyb.unique_id()))