diff options
Diffstat (limited to 'tests/wipy/i2c.py')
-rw-r--r-- | tests/wipy/i2c.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/wipy/i2c.py b/tests/wipy/i2c.py index b5f2a610d7..6931554191 100644 --- a/tests/wipy/i2c.py +++ b/tests/wipy/i2c.py @@ -3,14 +3,14 @@ I2C test for the CC3200 based boards. A MPU-9150 sensor must be connected to the I2C bus. ''' -from pyb import I2C +from machine import I2C import os import time -machine = os.uname().machine -if 'LaunchPad' in machine: +mch = os.uname().machine +if 'LaunchPad' in mch: i2c_pins = ('GP11', 'GP10') -elif 'WiPy' in machine: +elif 'WiPy' in mch: i2c_pins = ('GP15', 'GP10') else: raise Exception('Board not supported!') |