------------------------------------------------------------------
Code: Select all
from pyb import DAC, Pin, ADC, UART
uart = UART(2, 9600)
while True:
if uart.any():
data = uart.readline()
print(data)
##################debug from v1.11##################
MicroPython v1.11 on 2019-05-29; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>>
MPY: sync filesystems
MPY: soft reboot
b'H'
b'e'
b'l'
b'l'
b'o'
##################debug from v1.9.3 ##################
MicroPython v1.9.3 on 2017-11-01; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>>
PYB: sync filesystems
PYB: soft reboot
b'Hello'
///////////////////////////////////////////////////////
As you can see, with the same code, the output information of different firmware versions is different. V1.93 gets' hello ', while v1.11 gets' H', 'e', 'l', 'l', 'o'