summaryrefslogtreecommitdiff
path: root/tests/pyb/i2c.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pyb/i2c.py')
-rw-r--r--tests/pyb/i2c.py3
1 files changed, 2 insertions, 1 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))