Skip to content

Update embedded-hal to 1.0#73

Merged
chrysn merged 11 commits intomainfrom
embedded-hal-1
Jan 26, 2024
Merged

Update embedded-hal to 1.0#73
chrysn merged 11 commits intomainfrom
embedded-hal-1

Conversation

@chrysn
Copy link
Copy Markdown
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
chrysn added 11 commits January 26, 2024 13:37
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
Copy Markdown
Member Author

chrysn commented Jan 26, 2024

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

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