I think, the answer to my question is rather trivial, the snag is, I don't know what it is. In short, I would like to use the REPL from python, meaning that I would like to open the serial port on the PC from python, and then put the instructions on the serial line. This works fine till I enter an instruction that should return something. In such cases, I resorted to an explicit print statement, but that is really not an ideal solution. Here is an example using pyboard.py.
This does not return anything
Code: Select all
python pyboard.py -c '3*3'
Code: Select all
python pyboard.py -c 'print(3*3)'
Thanks,
Zoltán