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

Extend PCAL6416A driver to implement digital::InputPin and digital::OutputPin from embedded-hal #2

Open
madeleyneVaca opened this issue Jan 9, 2025 · 0 comments

Comments

@madeleyneVaca
Copy link
Contributor

It would be nice to have an additional abstraction on top of this driver using digital::InputPin and digital::OutputPin from embedded-hal

So instead of doing ioexp_device.config_port_0().write_async(|w| w.set_c_0_7(true)),
we can do

   let pin = ioexp_device.get_pin(0, 7);
   pin.set_high();

Originally posted by @jerrysxie in #1 (comment)

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

No branches or pull requests

1 participant