(non)blocking both way communication via serial #10474
Replies: 3 comments 3 replies
-
|
See this demo. |
Beta Was this translation helpful? Give feedback.
-
|
I try set |
Beta Was this translation helpful? Give feedback.
-
|
Hello @emcek I am facing a similar situation as yours, I still did not had the time to work on the code. I plan using the example linked by @peterhinch as a starting point, but I am going to use sys.stdin and sys.stdout instead of directly tampering with the UART to make a (hopefully) smooth transition between REPL and application and vice-versa during the development of my code. Are you using Thonny? If affirmative, then it may be the cause of your problem (from what I have read around here, Thonny do some weird things that may interfere with the normal operation of the MP application). I suggest you try rshell or mpremote. HTH. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I looking for (at best) non-blocking both way communication Pico <=> PC via serial. I need send something to Pico (i.e. print at LCD) and allow Pico to send to PC events from LCD touch screen or onboard buttons.
Found:
belay looks like communication is initiate by PC only: printing something at LCD or return value from some function executed at Pico.
I guess it should be already written by somebody, I don't need reinvented wheel....
Beta Was this translation helpful? Give feedback.
All reactions