Skip to content

Add simple async_context example - #721

Merged
peterharperuk merged 3 commits into
raspberrypi:developfrom
mjcross:async-context-example
Jun 12, 2026
Merged

peterharperuk merged 3 commits into
raspberrypi:developfrom
mjcross:async-context-example

Conversation

@mjcross

@mjcross mjcross commented Nov 22, 2025

Copy link
Copy Markdown
Contributor

A simple example showing how to add an at-time worker to a background async context.

The intention is to supplement the High Level API documentation in the SDK which doesn't really seem to go into the practical details of how to create and add workers.

The example builds and runs for both Pico and Pico-W boards so I suggest it belongs as a top level example rather than in the Pico-W folder. I've put it in an async_context folder on the assumption there might in due course be other examples (e.g. when-pending worker).

@mjcross

mjcross commented Feb 26, 2026

Copy link
Copy Markdown
Contributor Author

Any reviewer comments?

@peterharperuk

Copy link
Copy Markdown
Contributor

It should use the status led library. I will get around to pushing this before the next sdk release. I'm afraid not much will happen till then.

@mjcross

mjcross commented Feb 26, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @peterharperuk - that's a useful library I'd overlooked!
Your efforts are as always very much appreciated

@peterharperuk peterharperuk added this to the 2.2.1 milestone Jun 5, 2026
@peterharperuk
peterharperuk merged commit 5eab99f into raspberrypi:develop Jun 12, 2026
1 check passed
@will-v-pi

Copy link
Copy Markdown
Contributor

Why does this PR delete the sample generated PIO files, and add them and the .gitignore to the .gitignore? I think those changes from this PR should be reverted, as those changes are unrelated to the new example.

@peterharperuk

Copy link
Copy Markdown
Contributor

Why does this PR delete the sample generated PIO files, and add them and the .gitignore to the .gitignore? I think those changes from this PR should be reverted, as those changes are unrelated to the new example.

Sorry - didn't spot that - will revert

peterharperuk added a commit that referenced this pull request Jun 15, 2026
These should not have been deleted

See #721
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants