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

Update embedded-hal to 1.0 #73

Merged
merged 11 commits into from
Jan 26, 2024
Merged

Update embedded-hal to 1.0 #73

merged 11 commits into from
Jan 26, 2024

Conversation

chrysn
Copy link
Member

@chrysn chrysn commented Jan 20, 2024

To retain compatibility, we're actually adding an implementation of embedded-hal 1.0 in addition to the older 0.2 version.

@chrysn chrysn force-pushed the embedded-hal-1 branch 2 times, most recently from f75961c to 4d75a97 Compare January 20, 2024 22:39
This adds a .set_state() call (which would otherwise not be available as
it's a provided method of the traits), which also benefits HAL users
because the direct implementation can do without the branching of the
provided method.

Test pinouts are also provided for microbit-v2 because that's where it
was just tested.
This is not a high quality implementation, but it satisfies the trait
requirements.
@chrysn chrysn marked this pull request as ready for review January 26, 2024 12:48
@chrysn
Copy link
Member Author

chrysn commented Jan 26, 2024

It's complete enough that drivers can use it; let's ship it.

@chrysn chrysn enabled auto-merge January 26, 2024 12:53
@chrysn chrysn merged commit 4c98352 into main Jan 26, 2024
55 checks passed
@chrysn chrysn deleted the embedded-hal-1 branch January 26, 2024 13:33
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.

1 participant