Skip to content

UART does not return to REPL #70

Closed
@microbit-mark

Description

@microbit-mark

micro:bit support: 44148

from microbit import *
def uart_test():
    uart.init(baudrate=115200,tx=pin0,rx=pin1)
    display.scroll("UART")
    uart.init(baudrate=115200)
    return ('done son')

On v1 program displays 'UART' and returns the string 'done son' in the REPL

on V2 program displays 'UART' but does not return the string 'done son' in the REPL

Tested in https://python.microbit.org/v/beta

Flash the script then open a serial connection. Call the uart_test() function

>>>print(uart_test())

Notice the program works as expected on V1 but hangs V2.

Clicking on on send CTRC-C or CTRL-D does not reset the REPL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions