Skip to content

Make good use of the dual cores of the RP2350(PICO2) to assist IRQ #17952

Discussion options

You must be logged in to vote

OK, this is quite undemanding.

The easy way to do this is to forget about interrupts and threading. Use asyncio.StreamReader, specifically the readline() method. See this example: this has a Pyboard concurrently sending and receiving messages. See tutorial and docs for general information about asyncio.

There is a bit of a learning curve, but asyncio really is the easiest way to interface UARTS and to have other code run concurrently.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@MasterYuan418
Comment options

@peterhinch
Comment options

Answer selected by MasterYuan418
@MasterYuan418
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants