diff options
Diffstat (limited to 'tests/wipy/uart_irq.py')
-rw-r--r-- | tests/wipy/uart_irq.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/wipy/uart_irq.py b/tests/wipy/uart_irq.py index 322be9e8b..d4cd90058 100644 --- a/tests/wipy/uart_irq.py +++ b/tests/wipy/uart_irq.py @@ -2,14 +2,14 @@ UART IRQ test for the CC3200 based boards. ''' -from pyb import UART +from machine import UART import os import time -machine = os.uname().machine -if 'LaunchPad' in machine: +mch = os.uname().machine +if 'LaunchPad' in mch: uart_pins = [[('GP12', 'GP13'), ('GP12', 'GP13', 'GP7', 'GP6')], [('GP16', 'GP17'), ('GP16', 'GP17', 'GP7', 'GP6')]] -elif 'WiPy' in machine: +elif 'WiPy' in mch: uart_pins = [[('GP12', 'GP13'), ('GP12', 'GP13', 'GP7', 'GP6')], [('GP16', 'GP17'), ('GP16', 'GP17', 'GP7', 'GP6')]] else: raise Exception('Board not supported!') |