Skip to content

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

@madeleyneVaca

Description

@madeleyneVaca

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions