Le code suivant produit une erreur:
Code: Select all
The issue is that i can't use this available UART0 to dialog with for example a sensor. I've got error with that code.
>>> from machine import UART
>>> uart0=UART(0, baudrate=9600, tx=21, rx=20)
>>> uart0.write('toto')
>>> uart0.read(4)
Code: Select all
The issue is that i can't use this available UART0 to dialog with for example a sensor. I've got error with that code.
>>> from machine import UART
>>> uart0=UART(1, baudrate=9600, tx=21, rx=20)
>>> uart0.write('toto')
>>> uart0.read(4)
