Re: Control a pyboard by another pyboard over UART
Posted: Tue Jan 25, 2022 2:21 pm
I don't really understand the pyb.repl_uart() function.
I would like to execute the basic summ opération (2+1) on a pyboard 2 through uart from a pyboard 1 script.
I tried this :
On the pyboard1 :
On the pyboard2 :
But nothing happends
What is the problem ?
I would like to execute the basic summ opération (2+1) on a pyboard 2 through uart from a pyboard 1 script.
I tried this :
On the pyboard1 :
Code: Select all
import pyb
repl_uart = pyb.UART(4, 115200)
repl_uart.write("1+2") # the to execute
Code: Select all
import pyb
repl_uart = pyb.UART(4, 115200)
pyb.repl_uart(repl_uart)
What is the problem ?