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

Port to embedded-hal 1.0.0-rc.1 #130

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

mbuesch
Copy link
Contributor

@mbuesch mbuesch commented Oct 21, 2023

This updates the rppal to embedded-hal 1.0.0-rc.1.
That is currently the latest released version. (This version is also implemented by esp-idf-hal. Which is good for portability of drivers between rppal and esp)

I tested SPI and I2C communication with rppal on a Raspi 2 with an adxl345 device.

Note:
embedded-hal now suggests to implement the embedded-io traits for uart.
See https://docs.rs/embedded-hal/1.0.0-rc.1/embedded_hal/index.html#serialuart-traits
This is not done with this PR, yet. That can be done later, if required.

@golemparts
Copy link
Owner

Thanks for this PR! I don't do a lot with embedded-hal myself, so I appreciate these PRs. Looking forward to the 1.0.0 release!

@golemparts golemparts merged commit d8ad172 into golemparts:master Oct 24, 2023
4 checks passed
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