hello,
i have a raspberry pico where is 2x a UART on board,.....but i need 3 UART's.
1 - is for the touchscreen (nextion)
2 - is for a home made scanner
3 - for sending data to the PC (laptop).
number 2 & 3 are never working on the same time, the come always after eachother.
so I thought maybe I can remap that:
2 - (home made scanner) on GP 4 & 5
3 - (data to PC) on GP 8 & 9
is ther a way to do this ?
I have already tried:
but that was not working.
i read somewhere that somebody thit this to "trow away" de UART en then create a new one.
but he not said: how to "trow away" the UART
maybe somebody now how to do this ?
thanks in advance.
i have a raspberry pico where is 2x a UART on board,.....but i need 3 UART's.
1 - is for the touchscreen (nextion)
2 - is for a home made scanner
3 - for sending data to the PC (laptop).
number 2 & 3 are never working on the same time, the come always after eachother.
so I thought maybe I can remap that:
2 - (home made scanner) on GP 4 & 5
3 - (data to PC) on GP 8 & 9
is ther a way to do this ?
I have already tried:
1 2 3 4 5 6 7 8 9 10 |
while True : uart = UART ( 1 , baudrate = 9600 , tx = Pin( 4 ), rx = Pin( 5 )) # do some things uart.deinit() # do some other things uart = UART ( 1 , baudrate = 9600 , tx = Pin( 8 ), rx = Pin( 9 )) # do some things uart.deinit() |
i read somewhere that somebody thit this to "trow away" de UART en then create a new one.
but he not said: how to "trow away" the UART
maybe somebody now how to do this ?
thanks in advance.
I'm not French, but from the netherlands