diff options
author | Daniel Campora <daniel@wipy.io> | 2015-09-27 13:45:48 +0200 |
---|---|---|
committer | Daniel Campora <daniel@wipy.io> | 2015-09-27 16:50:27 +0200 |
commit | c92e6a45ebba4d41c2d0d891e07f94a81d2f601f (patch) | |
tree | e861f7bfb70147d7a648cefc4c47c4b8e682f52d /tests/wipy/uart.py | |
parent | 0a7e4fa5cee7dcb6ce060bef37d4eae5e6f06503 (diff) | |
download | micropython-c92e6a45ebba4d41c2d0d891e07f94a81d2f601f.tar.gz micropython-c92e6a45ebba4d41c2d0d891e07f94a81d2f601f.zip |
cc3200: Rename pyb module to machine.
Diffstat (limited to 'tests/wipy/uart.py')
-rw-r--r-- | tests/wipy/uart.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/wipy/uart.py b/tests/wipy/uart.py index a69300d8f6..2e8bb07477 100644 --- a/tests/wipy/uart.py +++ b/tests/wipy/uart.py @@ -3,16 +3,16 @@ UART test for the CC3200 based boards. UART0 and UART1 must be connected together for this test to pass. ''' -from pyb import UART -from pyb import Pin +from machine import UART +from machine import Pin import os import time -machine = os.uname().machine -if 'LaunchPad' in machine: +mch = os.uname().machine +if 'LaunchPad' in mch: uart_id_range = range(0, 2) uart_pins = [[('GP12', 'GP13'), ('GP12', 'GP13', 'GP7', 'GP6')], [('GP16', 'GP17'), ('GP16', 'GP17', 'GP7', 'GP6')]] -elif 'WiPy' in machine: +elif 'WiPy' in mch: uart_id_range = range(0, 2) uart_pins = [[('GP12', 'GP13'), ('GP12', 'GP13', 'GP7', 'GP6')], [('GP16', 'GP17'), ('GP16', 'GP17', 'GP7', 'GP6')]] else: |