Closed
Description
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