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

Copy pico_i2c_pio example from rp-hal #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jannic
Copy link
Member

@jannic jannic commented May 15, 2022

As mentioned in https://github.com/ithinuel/i2c-pio-rs/pull/5#issuecomment-1113087440 it might be sensible to move the example from rp-hal to this crate.

Unfortunately, to make it easy to compile it, several additional files are needed. I don't think adding these files will cause any real issues, but they clutter the repo and may be confusing. So I'm no longer convinced that his is the best option.

//! using the PIO peripheral as an I2C bus controller.
//! The pins used for the I2C can be remapped to any other pin available to the PIO0 peripheral.
//!
//! See the `Cargo.toml` file for Copyright and license details.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC the example was originally written by you, @ithinuel, so I guess this line still applies even after moving the example here.

Copy link
Member

@ithinuel ithinuel May 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's correct.

https://github.com/rp-rs/rp-hal/commits/main/boards/rp-pico/examples/pico_i2c_pio.rs shows there has been some changes from @jonathanpallant and @VictorKoenders. We may need approval from them as well ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My change was only to update the uart API

jannic referenced this pull request in jannic/rp-hal Jun 4, 2022
This example should be moved to the i2c-pio crate:
https://github.com/ithinuel/i2c-pio-rs/pull/6
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