Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example using GPIO DynPin #696

Merged
merged 5 commits into from
Sep 30, 2023
Merged

Conversation

9names
Copy link
Member

@9names 9names commented Sep 28, 2023

#585 changed how GPIO worked, and the changelog hinted that it made it easier to use Pins in arrays but did not include any examples, doc-examples, or code snippets that tell you how to do it.
This example should at least provide some hints to new embedded rustaceans on how to use this feature.

@jannic
Copy link
Member

jannic commented Sep 28, 2023

This needs an entry in Cargo.toml:

[[example]]
name = "gpio_dyn_pin_array"
required-features = ["critical-section-impl"]

@9names 9names merged commit 1c2b7a4 into rp-rs:main Sep 30, 2023
8 checks passed
@9names 9names deleted the gpio_dyn_pin_example branch October 14, 2023 11:41
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.

2 participants