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

i2c permits forgetting to call set_slave_address #66

Open
ijackson opened this issue Dec 10, 2020 · 0 comments
Open

i2c permits forgetting to call set_slave_address #66

ijackson opened this issue Dec 10, 2020 · 0 comments
Assignees

Comments

@ijackson
Copy link

The rppal gpio functions use the Rust type system to stop you forgetting to set the pin mode, etc. This kind of thing is a good idea.

i2c should ideally have something similar, where you can't forget to call set_slave_address. (AFAICT none of the other setters are mandatory.) Unfortunately I think this would be a breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants