Closed ryankurte closed 5 years ago
Hello, sorry for the late response ... Thank you very much for this PR! SPI support is definitely a good addition and the embedded-hal-mocks
also look much better than my hack.
A few things:
Cargo.toml
and the ignore
tag in mutex.rs
Thanks for the response! I'm looking forward to playing with some SPI things.
I've reverted the suggestions, but I'm too far down the squashing path to split it out really. Can close this and open another PR if you'd prefer.
No need to, looks good now! I'll merge this today in the evening.
Hmm, docs.rs seems to hide the path of the implemented traits which makes it hard to interpret what is available, is there anything we can do about that?
My only idea is maybe renaming T
to I2C
and SPI
so it appears in line at least.
Yes, I noticed that as well ... Your idea sounds good, I'll see what I can do!
This is what I came up with ... Would you be ok with this design?
Looks excellent to me!
Hi hi, this adds an SPI proxy, and swaps tests to use
embedded-hal-mock
rather than their own implementation. If you'd prefer I can revert the test changes and write a standalone one.